diff --git a/.gitignore b/.gitignore index e0853a3..9cac2b9 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,5 @@ yarn-error.log* *.tsbuildinfo next-env.d.ts -local.db +*.db +data/ diff --git a/.npmrc b/.npmrc index c9d4e9b..5330325 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -public-hoist-pattern[]=*libsql* +public-hoist-pattern[]=*@libsql* diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..077dd38 --- /dev/null +++ b/compose.yml @@ -0,0 +1,19 @@ +services: + inffo2: + container_name: inffo2 + build: + context: . + args: + DB_FILE_NAME: ${DB_FILE_NAME} + environment: + AUTH_SECRET: ${AUTH_SECRET} + AUTH_GITHUB_ID: ${AUTH_GITHUB_ID} + AUTH_GITHUB_SECRET: ${AUTH_GITHUB_SECRET} + DB_FILE_NAME: ${DB_FILE_NAME} + ports: + - 3000:3000 + restart: unless-stopped + volumes: + - type: bind + source: ./data/data.db + target: /app/data.db diff --git a/next.config.ts b/next.config.ts index 4031807..bfd0027 100644 --- a/next.config.ts +++ b/next.config.ts @@ -3,7 +3,10 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", outputFileTracingIncludes: { - "*": ["node_modules/@libsql/**/*", "node_modules/libsql/**/*"], + "./**/*": [ + "./node_modules/@libsql/darwin*/**/*", + "./node_modules/@libsql/linux*/**/*", + ], }, };