next/nuxt.config.ts

40 lines
760 B
TypeScript
Raw Normal View History

2023-09-23 15:58:51 -04:00
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
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]"
}
2023-09-23 15:58:51 -04:00
})