Skip to content

Commit

Permalink
fix GP2 server to allow the hub to run locally (#4448)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaguimaraes authored Nov 25, 2024
1 parent 275e777 commit 28d334a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/gp2-server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const algoliaApiKey = ALGOLIA_API_KEY || '';
export const algoliaApiKeyTtl = 36060; // in [seconds] = 10 hours + 1 min - 1 minute is to account for network delays and off-sync clocks between servers
export const algoliaAppId = ALGOLIA_APP_ID || 'R44097HEU2';
export const algoliaIndex = ALGOLIA_INDEX || 'gp2-hub_dev';
export const asapApiUrl = API_URL || 'http://localhost:3333';
export const asapApiUrl = API_URL || 'http://localhost:4444';
export const auth0Audience =
process.env.GP2_AUTH0_AUDIENCE || AUTH0_AUDIENCE || '';
export const auth0ClientId = AUTH0_CLIENT_ID || '';
Expand Down
2 changes: 1 addition & 1 deletion apps/gp2-server/src/publicApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const publicAppFactory = (
);

// Catch all
app.get('*', async (_req, res) => {
app.get('/public/*', async (_req, res) => {
res.status(404).json({
statusCode: 404,
error: 'Not Found',
Expand Down

0 comments on commit 28d334a

Please sign in to comment.