Skip to content

Commit

Permalink
Merge pull request #78 from InterfaceX-co-jp/fix/railway-deployment
Browse files Browse the repository at this point in the history
fix: Railway Docker deployment
  • Loading branch information
mikana0918 authored Nov 18, 2024
2 parents fc6499c + 3bae6d5 commit 5069cd7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend-api/scripts/config.common.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ export default {
entryPoints: [path.resolve(dirname, '../entrypoints/index.ts')],
outdir: path.resolve(dirname, '../'),
platform: 'node',
target: 'node20',
target: 'node22',
format: 'esm',
banner: {
// commonjs用ライブラリをESMプロジェクトでbundleする際に生じることのある問題への対策
js: 'import { createRequire } from "module"; import url from "url"; const require = createRequire(import.meta.url); const __filename = url.fileURLToPath(import.meta.url); const __dirname = url.fileURLToPath(new URL(".", import.meta.url));',
},
bundle: true,
plugins: [nodeExternalsPlugin()],
logLevel: 'info',
Expand Down

0 comments on commit 5069cd7

Please # to comment.