Dockerfile
This commit is contained in:
parent
838031c75c
commit
f16d39615e
|
@ -9,7 +9,6 @@ RUN npm run build
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
|
|
||||||
# COPY --from=frontend-builder /app/public /usr/share/nginx/html
|
|
||||||
COPY --from=frontend-builder /app .
|
COPY --from=frontend-builder /app .
|
||||||
|
|
||||||
EXPOSE 4173
|
EXPOSE 4173
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
"dev-host": "vite dev --host",
|
"dev-host": "vite dev --host",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview --port 4173 --host",
|
||||||
"test": "playwright test",
|
"test": "playwright test",
|
||||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
export const backend = 'http://127.0.0.1:3000';
|
|
|
@ -1,7 +1,9 @@
|
||||||
import axios, { Axios, type AxiosResponse } from 'axios';
|
import axios, { Axios, type AxiosResponse } from 'axios';
|
||||||
import { toastAlert } from './toasts';
|
import { toastAlert } from './toasts';
|
||||||
import { setupCache } from 'axios-cache-interceptor';
|
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(
|
export default setupCache(
|
||||||
new Axios({
|
new Axios({
|
||||||
|
|
Loading…
Reference in New Issue