mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-23 21:36:37 +00:00
disable helmet and add esbuild
This commit is contained in:
@@ -4,9 +4,9 @@ import * as schema from "@server/db/schema";
|
||||
import environment from "@server/environment";
|
||||
import path from "path";
|
||||
|
||||
const sqlite = new Database(
|
||||
path.join(environment.CONFIG_PATH, "db", "db.sqlite"),
|
||||
);
|
||||
const location = path.join(environment.CONFIG_PATH, "db", "db.sqlite");
|
||||
|
||||
const sqlite = new Database(location);
|
||||
export const db = drizzle(sqlite, { schema });
|
||||
|
||||
export default db;
|
||||
|
||||
@@ -26,7 +26,7 @@ app.prepare().then(() => {
|
||||
// External server
|
||||
const externalServer = express();
|
||||
|
||||
externalServer.use(helmet());
|
||||
// externalServer.use(helmet()); // Disabled because causes issues with Next.js
|
||||
externalServer.use(cors());
|
||||
externalServer.use(cookieParser());
|
||||
externalServer.use(express.json());
|
||||
|
||||
Reference in New Issue
Block a user