mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-12-22 04:59:56 +05:30
fix everything in an elegant way
This commit is contained in:
parent
7a04cc70fe
commit
641dbeeea4
@ -15,8 +15,4 @@ RUN pnpm build
|
||||
|
||||
EXPOSE 4173
|
||||
|
||||
ENV PORT=4173
|
||||
|
||||
ENV ORIGIN=http://localhost:4173
|
||||
|
||||
CMD ["node", "build"]
|
||||
CMD ["pnpm", "preview", "--host"]
|
@ -11,7 +11,6 @@ services:
|
||||
environment:
|
||||
AUTH_SECRET: ${AUTH_SECRET}
|
||||
AUTH_TRUST_HOST: ${AUTH_TRUST_HOST}
|
||||
ORIGIN: ${ORIGIN}
|
||||
AUTH_URL: ${AUTH_URL}
|
||||
DB_HOST: ${DB_HOST}
|
||||
DB_PORT: ${DB_PORT}
|
||||
|
@ -37,7 +37,6 @@
|
||||
"dependencies": {
|
||||
"@auth/core": "^0.2.4",
|
||||
"@auth/sveltekit": "^0.1.11",
|
||||
"dotenv": "^16.0.3",
|
||||
"joi": "^17.7.0",
|
||||
"pg": "^8.8.0",
|
||||
"pg-hstore": "^2.3.4",
|
||||
|
7
pnpm-lock.yaml
generated
7
pnpm-lock.yaml
generated
@ -11,7 +11,6 @@ specifiers:
|
||||
consola: ^2.15.3
|
||||
dayjs: ^1.11.7
|
||||
discord-webhook-node: ^1.1.8
|
||||
dotenv: ^16.0.3
|
||||
joi: ^17.7.0
|
||||
mdsvex: ^0.10.6
|
||||
pg: ^8.8.0
|
||||
@ -34,7 +33,6 @@ specifiers:
|
||||
dependencies:
|
||||
'@auth/core': 0.2.4
|
||||
'@auth/sveltekit': 0.1.11_f5fzfhbe3oooig6fzl5vkyl5v4
|
||||
dotenv: 16.0.3
|
||||
joi: 17.7.0
|
||||
pg: 8.8.0
|
||||
pg-hstore: 2.3.4
|
||||
@ -946,11 +944,6 @@ packages:
|
||||
- encoding
|
||||
dev: true
|
||||
|
||||
/dotenv/16.0.3:
|
||||
resolution: {integrity: sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==}
|
||||
engines: {node: '>=12'}
|
||||
dev: false
|
||||
|
||||
/dottie/2.0.2:
|
||||
resolution: {integrity: sha512-fmrwR04lsniq/uSr8yikThDTrM7epXHBAAjH9TbeH3rEA8tdCO7mRzB9hdmdGyJCxF8KERo9CITcm3kGuoyMhg==}
|
||||
dev: false
|
||||
|
@ -17,7 +17,10 @@ const config = {
|
||||
],
|
||||
|
||||
kit: {
|
||||
adapter: adapter()
|
||||
adapter: adapter(),
|
||||
csrf: {
|
||||
checkOrigin: false
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -3,10 +3,7 @@ import unoCSS from "unocss/vite";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
const config = defineConfig({
|
||||
plugins: [sveltekit(), unoCSS()],
|
||||
optimizeDeps: {
|
||||
include: ["pg", "pg-hstore"]
|
||||
}
|
||||
plugins: [sveltekit(), unoCSS()]
|
||||
});
|
||||
|
||||
export default config;
|
||||
|
Loading…
Reference in New Issue
Block a user