website now works

This commit is contained in:
polv committed 2020-12-16 05:00:20 +07:00
1 parent ce56fcb91c
commit 3daa9f82e7
15 files changed
+241 -137

No files matched your search

+3 -7
View File
@@ -4,6 +4,7 @@ import { getTheme } from './server/theme'
const config = async (): Promise<NuxtConfig> => {
const theme = getTheme()
const PORT = process.env.PORT || '3000'
return {
// Global page headers (https://go.nuxtjs.dev/config-head)
@@ -56,18 +57,13 @@ const config = async (): Promise<NuxtConfig> => {
],
// Modules (https://go.nuxtjs.dev/config-modules)
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
],
// Axios module configuration (https://go.nuxtjs.dev/config-axios)
axios: {},
modules: [],
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {},
env: {
THEME: JSON.stringify(theme),
PORT,
},
serverMiddleware: [{ path: '/api', handler: '~/server/index.ts' }],
}