Skip to content
Snippets Groups Projects
Commit 1568a707 authored by hannahl8's avatar hannahl8
Browse files

Merge remote-tracking branch 'origin/main'

parents 80633399 d96781a7
No related branches found
No related tags found
No related merge requests found
Pipeline #10642 passed
......@@ -2,13 +2,15 @@ FROM node:18-alpine
WORKDIR /vtrc
COPY public/ /vtrc/public
COPY src/ /vtrc/src
COPY package.json package-lock.json tsconfig.json vite.config.ts tsconfig.node.json index.html .eslintrc.cjs /vtrc/
COPY vite.config-docker.ts /vtrc/vite.config.ts
COPY package.json .
COPY package-lock.json .
RUN npm ci
RUN npm install
EXPOSE 5173
COPY ./ ./
CMD ["npm", "run", "dev"]
RUN npm run build
EXPOSE 8080
CMD ["npm", "run", "preview"]
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: { port: 80}
})
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
base: "/",
plugins: [react()],
server: { port: 5175}
})
preview: {
port: 8080,
strictPort: true,
},
server: {
port: 8080,
strictPort: true,
host: true,
origin: "http://0.0.0.0:8080",
},
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment