R
Railway12mo ago
Bill

bun + Railway not respecting blitz.js/next.js page extensions

I'm attempting to deploy my first application to Railway using bun. I have the following configured in my next.config.js file so that only files ending with "page.tsx" are considered pages.
pageExtensions: ["page.tsx", "page.ts", "page.jsx", "page.js"],
pageExtensions: ["page.tsx", "page.ts", "page.jsx", "page.js"],
The blitz routes found in Routes, such as Home(), Todo(), etc should point to http://domain/, http://domain/todo, etc. Instead, they are pointing to https://domain/index.page, https://domain/todo.page. These are invalid links. The strange thing is, if I remove bun.lockb and have Railway deploy via npm, the Routes are all fine. I do NOT have this problem running via bun in development.
2 Replies
Percy
Percy12mo ago
Project ID: 44a76642-4902-433e-add3-9db595f223ef
Bill
BillOP12mo ago
44a76642-4902-433e-add3-9db595f223ef
Want results from more Discord servers?
Add your server