mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
feat(admin) - fix import in node server (#3330)
This commit is contained in:
parent
bc9140de80
commit
d57e18862a
1
admin/components.d.ts
vendored
1
admin/components.d.ts
vendored
@ -34,7 +34,6 @@ declare module 'vue' {
|
||||
IPhCaretDown: typeof import('~icons/ph/caret-down')['default']
|
||||
IPhCaretUpFill: typeof import('~icons/ph/caret-up-fill')['default']
|
||||
IPhEnvelope: typeof import('~icons/ph/envelope')['default']
|
||||
IPhXCircle: typeof import('~icons/ph/x-circle')['default']
|
||||
NavBar: typeof import('./src/components/NavBar.vue')['default']
|
||||
NotFoundPage: typeof import('./src/components/NotFoundPage.vue')['default']
|
||||
OpenCreationsTable: typeof import('./src/components/Tables/OpenCreationsTable.vue')['default']
|
||||
|
||||
@ -4,7 +4,7 @@ const path = require('path')
|
||||
|
||||
// Host & Port
|
||||
const hostname = '127.0.0.1'
|
||||
const port = import.meta.env.PORT || 8080
|
||||
const port = process.env.PORT || 8080
|
||||
|
||||
// Express Server
|
||||
const app = express()
|
||||
|
||||
@ -4,11 +4,10 @@ import commonjs from 'vite-plugin-commonjs'
|
||||
import Icons from 'unplugin-icons/vite'
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
import IconsResolve from 'unplugin-icons/resolver'
|
||||
|
||||
const path = require('path')
|
||||
|
||||
export default defineConfig({
|
||||
base: '/admin/',
|
||||
base: process.env.NODE_ENV === 'production' ? './' : '/admin',
|
||||
server: {
|
||||
port: 8080,
|
||||
},
|
||||
@ -40,6 +39,7 @@ export default defineConfig({
|
||||
commonjs(),
|
||||
],
|
||||
build: {
|
||||
outDir: 'build',
|
||||
outDir: path.resolve(__dirname, './build'),
|
||||
},
|
||||
publicDir: '/admin',
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user