mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
docs: add additional example for setting baseURL
and cdnURL
(#27273)
This commit is contained in:
parent
b4002f37d1
commit
c0b3d0329a
@ -45,7 +45,17 @@ export default defineUntypedSchema({
|
||||
/**
|
||||
* The base path of your Nuxt application.
|
||||
*
|
||||
* This can be set at runtime by setting the NUXT_APP_BASE_URL environment variable.
|
||||
* For example:
|
||||
* @example
|
||||
* ```ts
|
||||
* export default defineNuxtConfig({
|
||||
* app: {
|
||||
* baseURL: '/prefix/'
|
||||
* }
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
* This can also be set at runtime by setting the NUXT_APP_BASE_URL environment variable.
|
||||
* @example
|
||||
* ```bash
|
||||
* NUXT_APP_BASE_URL=/prefix/ node .output/server/index.mjs
|
||||
@ -63,6 +73,16 @@ export default defineUntypedSchema({
|
||||
/**
|
||||
* An absolute URL to serve the public folder from (production-only).
|
||||
*
|
||||
* For example:
|
||||
* @example
|
||||
* ```ts
|
||||
* export default defineNuxtConfig({
|
||||
* app: {
|
||||
* cdnURL: 'https://mycdn.org/'
|
||||
* }
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
* This can be set to a different value at runtime by setting the `NUXT_APP_CDN_URL` environment variable.
|
||||
* @example
|
||||
* ```bash
|
||||
|
Loading…
Reference in New Issue
Block a user