Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom entry.server with Vite not possible #105

Closed
joeykamsteeg opened this issue Apr 22, 2024 · 3 comments
Closed

Custom entry.server with Vite not possible #105

joeykamsteeg opened this issue Apr 22, 2024 · 3 comments

Comments

@joeykamsteeg
Copy link

joeykamsteeg commented Apr 22, 2024

Hi there,

I have ran into an issue lately with Remix running on Vite on Vercel. Vercel will remove the custom entry.server.tsx from the source code and use their own implementation. This insult in several issues that the user can't have control over the server part of Remix anymore.

WARN: Vercel uses its own `enter.server` file, so the file "app/entry.server.tsx" has been deleted.

In this case we could not set any error handling on the server part. Connecting services like Sentry on the server side is now not possible.

I would be very nice to have a custom entry.server.tsx implementation with Vite otherwise I do not see any reason to use Vite with SSR on Vercel.

@TooTallNate
Copy link
Member

Are you sure you are using the latest version of @vercel/remix? Support for a custom entry.server file was added in #89.

@joeykamsteeg
Copy link
Author

Yes I tried again with the newest version, I see it is now working.

I guess I was a bit confused because the warning message is stilling showing up in the build logs.

Thanks for you help!

@joeykamsteeg
Copy link
Author

Sorry for this issue, is seems that my deps lockfile had still the old version 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants