chore(nuxt): add runtimeconfig, css and modules to nuxt config

This commit is contained in:
parent eeb7a97d84
commit adaef6d274
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -1,4 +1,39 @@
// https://nuxt.com/docs/api/configuration/nuxt-config // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({ export default defineNuxtConfig({
devtools: { enabled: true } devtools: { enabled: true },
modules: [
'@ant-design-vue/nuxt',
'@sidebase/nuxt-auth',
'@pinia/nuxt'
],
css: [ "~/public/fonts.css", "~/public/css/all.css" ],
auth: {
provider: {
type: "local"
}
},
nitro: {
esbuild: {
options: {
minify: false
}
}
},
runtimeConfig: {
captchaSecret: process.env.CAPTCHASECRET,
database: {
user: process.env.DBUSER,
password: process.env.DBPASS,
uri: `mongodb://${process.env.DB}`
},
jwt: process.env.JWT,
public: {
// apiBase: "/api"
}
},
devServer: {
port: 3000,
host: "127.0.0.1",
url: "[::1]"
}
}) })