-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
37 lines (36 loc) · 1.04 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
import { defineNuxtConfig } from 'nuxt'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
server: {
port: 3000,
host: 'http://dev.example.com',
},
css: ['~/assets/css/tailwind.css'],
build: {
postcss: {
postcssOptions: require('./postcss.config.js'),
},
},
modules: [
'@nuxt/image-edge',
],
buildModules: [
'@pinia/nuxt',
],
image: {
domains: [
'cdn.quillguild.com',
'cdn-dev.quillguild.com',
],
},
publicRuntimeConfig: {
API_BASE_URL: process.env.API_BASE_URL,
DEVICE_NAME: process.env.DEVICE_NAME,
DOMAIN_EN: process.env.DOMAIN_EN,
DOMAIN_PL: process.env.DOMAIN_PL,
HTTP: process.env.NODE_ENV !== 'production' ? 'http://' : 'https://',
CDN: process.env.NODE_ENV !== 'production' ? 'https://cdn-dev.quillguild.com' : 'https://cdn.quillguild.com',
VERSION: process.env.VERSION,
HTTPS: process.env.HTTPS,
},
});