mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 17:44:44 +02:00
Its working!
This commit is contained in:
parent
800dcb6270
commit
143a3b756e
10 changed files with 81 additions and 15 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue