fix everything in an elegant way

This commit is contained in:
Akis 2022-12-31 20:25:09 +02:00
parent 7a04cc70fe
commit 641dbeeea4
Signed by untrusted user: akis
GPG Key ID: 267BF5C6677944ED
6 changed files with 6 additions and 19 deletions

View File

@ -15,8 +15,4 @@ RUN pnpm build
EXPOSE 4173 EXPOSE 4173
ENV PORT=4173 CMD ["pnpm", "preview", "--host"]
ENV ORIGIN=http://localhost:4173
CMD ["node", "build"]

View File

@ -11,7 +11,6 @@ services:
environment: environment:
AUTH_SECRET: ${AUTH_SECRET} AUTH_SECRET: ${AUTH_SECRET}
AUTH_TRUST_HOST: ${AUTH_TRUST_HOST} AUTH_TRUST_HOST: ${AUTH_TRUST_HOST}
ORIGIN: ${ORIGIN}
AUTH_URL: ${AUTH_URL} AUTH_URL: ${AUTH_URL}
DB_HOST: ${DB_HOST} DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT} DB_PORT: ${DB_PORT}

View File

@ -37,7 +37,6 @@
"dependencies": { "dependencies": {
"@auth/core": "^0.2.4", "@auth/core": "^0.2.4",
"@auth/sveltekit": "^0.1.11", "@auth/sveltekit": "^0.1.11",
"dotenv": "^16.0.3",
"joi": "^17.7.0", "joi": "^17.7.0",
"pg": "^8.8.0", "pg": "^8.8.0",
"pg-hstore": "^2.3.4", "pg-hstore": "^2.3.4",

7
pnpm-lock.yaml generated
View File

@ -11,7 +11,6 @@ specifiers:
consola: ^2.15.3 consola: ^2.15.3
dayjs: ^1.11.7 dayjs: ^1.11.7
discord-webhook-node: ^1.1.8 discord-webhook-node: ^1.1.8
dotenv: ^16.0.3
joi: ^17.7.0 joi: ^17.7.0
mdsvex: ^0.10.6 mdsvex: ^0.10.6
pg: ^8.8.0 pg: ^8.8.0
@ -34,7 +33,6 @@ specifiers:
dependencies: dependencies:
'@auth/core': 0.2.4 '@auth/core': 0.2.4
'@auth/sveltekit': 0.1.11_f5fzfhbe3oooig6fzl5vkyl5v4 '@auth/sveltekit': 0.1.11_f5fzfhbe3oooig6fzl5vkyl5v4
dotenv: 16.0.3
joi: 17.7.0 joi: 17.7.0
pg: 8.8.0 pg: 8.8.0
pg-hstore: 2.3.4 pg-hstore: 2.3.4
@ -946,11 +944,6 @@ packages:
- encoding - encoding
dev: true dev: true
/dotenv/16.0.3:
resolution: {integrity: sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==}
engines: {node: '>=12'}
dev: false
/dottie/2.0.2: /dottie/2.0.2:
resolution: {integrity: sha512-fmrwR04lsniq/uSr8yikThDTrM7epXHBAAjH9TbeH3rEA8tdCO7mRzB9hdmdGyJCxF8KERo9CITcm3kGuoyMhg==} resolution: {integrity: sha512-fmrwR04lsniq/uSr8yikThDTrM7epXHBAAjH9TbeH3rEA8tdCO7mRzB9hdmdGyJCxF8KERo9CITcm3kGuoyMhg==}
dev: false dev: false

View File

@ -17,7 +17,10 @@ const config = {
], ],
kit: { kit: {
adapter: adapter() adapter: adapter(),
csrf: {
checkOrigin: false
}
} }
}; };

View File

@ -3,10 +3,7 @@ import unoCSS from "unocss/vite";
import { defineConfig } from "vite"; import { defineConfig } from "vite";
const config = defineConfig({ const config = defineConfig({
plugins: [sveltekit(), unoCSS()], plugins: [sveltekit(), unoCSS()]
optimizeDeps: {
include: ["pg", "pg-hstore"]
}
}); });
export default config; export default config;