Dockerfile

This commit is contained in:
Brieuc Dubois 2024-01-09 23:32:40 +01:00
parent 838031c75c
commit f16d39615e
5 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,6 @@ RUN npm run build
FROM node:20-alpine
# COPY --from=frontend-builder /app/public /usr/share/nginx/html
COPY --from=frontend-builder /app .
EXPOSE 4173

View File

@ -6,7 +6,7 @@
"dev": "vite dev",
"dev-host": "vite dev --host",
"build": "vite build",
"preview": "vite preview",
"preview": "vite preview --port 4173 --host",
"test": "playwright test",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",

View File

@ -1 +0,0 @@
export const backend = 'http://127.0.0.1:3000';

View File

@ -1,7 +1,9 @@
import axios, { Axios, type AxiosResponse } from 'axios';
import { toastAlert } from './toasts';
import { setupCache } from 'axios-cache-interceptor';
import { backend } from '$lib/config';
import { env } from '$env/dynamic/public';
const backend = env.PUBLIC_BACKEND_URL || 'http://localhost:3000';
export default setupCache(
new Axios({

View File

@ -1 +1 @@
export const ssr = false;
export const ssr = false;