-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
37 lines (33 loc) · 932 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import path from 'node:path';
import process from 'node:process';
const baseUrl = process.env.NUXT_PUBLIC_API_BASE;
export default defineNuxtConfig({
devtools: { enabled: true },
future: {
compatibilityVersion: 4,
},
runtimeConfig: {
// The private keys which are only available within server-side
apiSecret: '123',
// Keys within public, will be also exposed to the client-side
public: {
apiBase: baseUrl,
},
},
alias: {
'@base': path.resolve(__dirname, 'layers/base'),
'@ui': path.resolve(__dirname, 'layers/UI'),
'@app': path.resolve(__dirname, 'app'),
},
vite: {
resolve: {
alias: {
'@base': path.resolve(__dirname, 'layers/base'),
'@app': path.resolve(__dirname, 'app'),
'@ui': path.resolve(__dirname, 'layers/UI'),
},
},
},
compatibilityDate: '2024-07-08',
});