Skip to content

Commit

Permalink
fix: production build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-lovelace committed Sep 26, 2023
1 parent 1cb0b10 commit 7c96a3c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
10 changes: 2 additions & 8 deletions packages/app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
"compilerOptions": {
"baseUrl": "./src"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["cypress", "node_modules"]
}
30 changes: 16 additions & 14 deletions packages/db/knexfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@ import path from "path";
import { Knex } from "knex";

const cwd = process.cwd();
const defaultConfig: Knex.Config = {
client: "sqlite3",
connection: {
filename: path.join(
cwd,
path.basename(cwd) === "db" ? "" : "../db",
"db.sqlite3",
),
},
migrations: {
extension: "ts",
},
useNullAsDefault: true,
};

const config: { [key: string]: Knex.Config } = {
development: {
client: "sqlite3",
connection: {
filename: path.join(
cwd,
path.basename(cwd) === "db" ? "" : "../db",
"db.sqlite3",
),
},
migrations: {
extension: "ts",
},
useNullAsDefault: true,
},
development: defaultConfig,
production: defaultConfig,
};

module.exports = config;

0 comments on commit 7c96a3c

Please sign in to comment.