Finally up and running again.

This commit is contained in:
iamBadgers
2025-06-12 00:10:12 -07:00
parent dbf550b700
commit a4be179faf
7 changed files with 156 additions and 17 deletions

View File

@@ -2,20 +2,21 @@ FROM node:22.16
WORKDIR /srv/proto
COPY proto .
RUN npm install
RUN npm run build
COPY proto/ .
# RUN npm install
# RUN npm run build
WORKDIR /srv/rush-character-archive
WORKDIR /srv/frontend
COPY rush-character-archive/package.json .
COPY frontend/package.json .
RUN npm install
RUN npm i -g serve
COPY frontend/. .
RUN npm i -g serve
RUN npm run build_protos
RUN npm run build
EXPOSE 8080

View File

@@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build_protos": "mkdir -p src/proto & npx protoc -I=../proto/ --ts_out ./src/proto --proto_path ../proto ../proto/*.proto",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "vite build",

View File

@@ -9,7 +9,17 @@ export default defineConfig({
plugins: [
vue(),
vueDevTools(),
],
],
preview: {
port: 3000,
strictPort: true,
},
server: {
port: 3000,
strictPort: true,
host: true,
origin: "http://0.0.0.0:3000",
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))