diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..a9198d7 Binary files /dev/null and b/bun.lockb differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..1d88ea2 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "preciazo", + "private": true, + "workspaces": [ + "dia-link-scraper", + "coto-link-scraper", + "scraper", + "sitio", + "db-datos" + ] +} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml deleted file mode 100644 index 1a6508f..0000000 --- a/pnpm-workspace.yaml +++ /dev/null @@ -1,6 +0,0 @@ -packages: - - "dia-link-scraper" - - "coto-link-scraper" - - "scraper" - - "sitio" - - "db-datos" diff --git a/sitio/Containerfile b/sitio/Containerfile new file mode 100644 index 0000000..151b905 --- /dev/null +++ b/sitio/Containerfile @@ -0,0 +1,10 @@ +FROM docker.io/oven/bun:1-alpine +COPY build/ . +RUN bun i +EXPOSE 3000 + +# https://github.com/gornostay25/svelte-adapter-bun/issues/39 +ENV PROTOCOL_HEADER=x-forwarded-proto +ENV HOST_HEADER=x-forwarded-host + +CMD ["bun", "run", "start"] \ No newline at end of file diff --git a/sitio/svelte.config.js b/sitio/svelte.config.js index 7b2a4b2..edc6005 100644 --- a/sitio/svelte.config.js +++ b/sitio/svelte.config.js @@ -1,5 +1,5 @@ -import adapter from "@sveltejs/adapter-node"; -// import adapter from "svelte-adapter-bun"; +// import adapter from "@sveltejs/adapter-node"; +import adapter from "svelte-adapter-bun"; import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; /** @type {import('@sveltejs/kit').Config} */