Its working!

This commit is contained in:
Owen Schwartz 2024-10-06 22:09:30 -04:00
parent 800dcb6270
commit 143a3b756e
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
10 changed files with 81 additions and 15 deletions

View file

@ -23,12 +23,11 @@ const handle = app.getRequestHandler();
const externalPort = environment.EXTERNAL_PORT;
const internalPort = environment.INTERNAL_PORT;
app.prepare().then(() => {
app.prepare().then(() => {
// External server
const externalServer = express();
externalServer.set("trust proxy", 1);
// externalServer.use(helmet()); // Disabled because causes issues with Next.js
externalServer.use(cors());