-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
55 lines (47 loc) · 1.61 KB
/
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
49
50
51
52
53
54
55
import { fileURLToPath } from 'url'
import wgsl from './config/wgsl-loader/vite'
import glsl from './config/glsl-loader/vite'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: false },
runtimeConfig: {
public: {
state: process.env.STATE ?? 'prod',
apiURL: process.env.API_URL ?? 'https://api.opens2.com',
dataURL: process.env.DATA_URL ?? 'https://api.opens2.com',
baseURL: process.env.BASE_URL ?? 'https://opens2.com'
}
},
watch: [
'./s2/**/*',
'./components/**/*',
'./pages/**/*',
'./plugins/**/*',
'./public/**/*'
],
modules: process.env.DEV === 'true'
? [
// 'nuxtjs-eslint-module'
]
: [],
css: [
fileURLToPath(new URL('./assets/styles/globals.css', import.meta.url))
],
vite: {
plugins: [wgsl(), glsl()]
},
alias: {
s2: fileURLToPath(new URL('./s2', import.meta.url)),
geometry: fileURLToPath(new URL('./s2/geometry', import.meta.url)),
gl: fileURLToPath(new URL('./s2/gl', import.meta.url)),
gpu: fileURLToPath(new URL('./s2/gpu', import.meta.url)),
plugins: fileURLToPath(new URL('./s2/plugins', import.meta.url)),
source: fileURLToPath(new URL('./s2/source', import.meta.url)),
style: fileURLToPath(new URL('./s2/style', import.meta.url)),
svg: fileURLToPath(new URL('./s2/svg', import.meta.url)),
ui: fileURLToPath(new URL('./s2/ui', import.meta.url)),
util: fileURLToPath(new URL('./s2/util', import.meta.url)),
workers: fileURLToPath(new URL('./s2/workers', import.meta.url))
},
compatibilityDate: '2024-10-04'
})