-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt3 config配置 #126
Comments
privateRuntimeConfig
publicRuntimeConfig
在nuxt.config.ts中配置
通过process.env可以取到.xxx文件设置的url
$config
访问$config
|
模块modules
和buildModules的区别:
|
vite设置将直接传递给Vite的配置
vite是啥? 特点是啥?
|
https://57code.github.io/nuxt3-docs-zh/directory-structure/nuxt-config.html#servermiddleware serverMiddleware
在server-middleware下新建index.js
nuxt.config.ts下配置
nuxt.config.ts下配置
middleware是路由中间件--在vue的部分运行,serverMiddleware是服务器中间件--在vue渲染之前运行
|
meta设置:
2.单个页面配置
|
https://57code.github.io/nuxt3-docs-zh/directory-structure/nuxt-config.html
The text was updated successfully, but these errors were encountered: