-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
48 lines (42 loc) · 908 Bytes
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import path from 'path';
import { config } from 'dotenv';
config({
path: path.resolve(__dirname, '.env.' + process.env.NODE_ENV)
});
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
srcDir: 'src',
devtools: { enabled: true },
modules: ['@pinia/nuxt', '@vueuse/nuxt', '@unocss/nuxt'],
devServer: {
host: '0.0.0.0',
port: 8000
},
runtimeConfig: {
public: {
ICP_CODE: process.env.ICP_CODE
}
},
vite: {
plugins: [],
server: {
hmr: true,
proxy: {
'/api': {
target: 'http://localhost:3000/api',
changeOrigin: true,
ws: true,
rewrite: path => path.replace(/^\/api/, '')
// only https
// secure: false
}
}
}
},
unocss: {},
experimental: {
appManifest: false
},
nitro: {},
compatibilityDate: '2024-09-24'
});