fix depend errors

This commit is contained in:
ngn 2024-05-22 00:08:06 +03:00
parent a72f7bb19b
commit 73a138a8fd
4 changed files with 893 additions and 184 deletions

View File

@ -3,10 +3,20 @@ FROM oven/bun:1.1 as build
WORKDIR /app
COPY . /app
EXPOSE 4173
ARG API_URL
ENV VITE_API_URL_DEV $API_URL
RUN bun install && bun run build
CMD ["bun", "run", "preview"]
FROM oven/bun:1.1 as main
WORKDIR /app
COPY --from=build /app/build ./build
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/package-lock.json ./package-lock.json
EXPOSE 4173
RUN bun ci --omit dev
CMD ["bun", "build"]

1040
app/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,15 +3,17 @@
"version": "4.8.0",
"private": true,
"scripts": {
"dev": "vite dev",
"dev": "VITE_API_URL_DEV=http://127.0.0.1:7001 vite dev",
"build": "vite build",
"preview": "vite preview --host"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^2.5.10",
"svelte": "^4.2.17",
"vite": "^4.5.3"
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-node": "^5.0.1",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"svelte": "^4.2.7",
"vite": "^5.0.3"
},
"type": "module",
"dependencies": {

View File

@ -1,14 +1,11 @@
import adapter from '@sveltejs/adapter-auto';
//import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
},
onwarn: (warning, handler) => {
if (warning.code === "a11y-click-events-have-key-events") return
handler(warning)