attempt to fix internal server error

This commit is contained in:
Amruth Pillai
2023-06-07 12:06:04 +02:00
parent 72e610b50d
commit 5ee99cfdab
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "reactive-resume",
"version": "3.7.2",
"version": "3.7.3",
"private": true,
"scripts": {
"dev": "env-cmd --silent cross-var cross-env VERSION=$npm_package_version pnpm run --recursive --parallel --stream dev",

View File

@ -5,6 +5,6 @@ export default registerAs('app', () => ({
environment: process.env.NODE_ENV,
secretKey: process.env.SECRET_KEY,
port: parseInt(process.env.PORT, 10) || 3100,
url: process.env.PUBLIC_URL || 'http://localhost:3000',
serverUrl: process.env.PUBLIC_SERVER_URL || 'http://localhost:3100',
url: process.env.PUBLIC_URL || 'http://localhost:3000/',
serverUrl: process.env.PUBLIC_SERVER_URL || 'http://localhost:3100/',
}));

View File

@ -53,7 +53,7 @@ export class PrinterService implements OnModuleInit, OnModuleDestroy {
const page = await this.browser.newPage();
await page.goto(`${url}/${username}/${slug}/printer?secretKey=${secretKey}`);
await page.goto(`${url}${username}/${slug}/printer?secretKey=${secretKey}`);
await page.waitForLoadState('networkidle');
await page.waitForSelector('html.wf-active');