-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
51 lines (39 loc) · 1007 Bytes
/
nuxt.config.js
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
import { defineNuxtConfig } from '@nuxt/bridge';
export default defineNuxtConfig({
bridge: {
// -- Opt-in features --
// Use Vite as the bundler instead of webpack 4
vite: true,
// Enable Nuxt 3 compatible useHead
meta: false,
// -- Default features --
// Use legacy server instead of Nitro
nitro: true,
// (!) Disable Nuxt 3 compatible `nuxtApp` interface
app: true,
// (!) disable legacy Composition API support
capi: {
legacy: false
},
// Do not transpile modules
transpile: true,
// Disable <script setup> support
scriptSetup: false,
// Disable composables auto importing
imports: false,
// Do not warn about module incompatibilities
constraints: false,
// (!) Disable typescript support
typescript: false,
},
server: {
port: process.env.PORT || 3000,
host: '0.0.0.0',
},
vite: {
base: 'https://my-cdn.net',
},
build: {
publicPath: 'https://my-cdn.net',
},
});