Commit 7d6f83d
committed
fix(content-server): Enable esbuild-register for server-side @fxa/shared imports
Because:
- content-server's server/bin and server/lib now require @fxa/shared/*
modules that aren't reachable via normal node resolution. auth-server
and others already run under 'node -r esbuild-register', which ships
tsconfig-paths and maps those imports. content-server was starting
with plain 'node ...', so the server refused to boot in CI — causing
Playwright 'NS_ERROR_CONNECTION_REFUSED to http://localhost:3030/'.
- Content-server's own tsconfig.json sets baseUrl to ./app/scripts for
the Backbone bundle, which broke the paths resolver even with
esbuild-register. TS_NODE_BASEURL=../../ pins tsconfig-paths back to
the repo root at runtime without affecting the webpack build.
This commit:
- Adds -r esbuild-register to the pm2 startup command
- Sets TS_NODE_BASEURL=../../ so @fxa/* paths resolve to libs/1 parent e0b63a2 commit 7d6f83d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
0 commit comments