Closed d-borys closed 1 month ago
If you're on a version prior to 1.7.0, you need to add a .env
and define the VITE_ANALOG_PUBLIC_BASE_URL=http://localhost:5173
https://analogjs.org/docs/features/data-fetching/server-side-data-fetching
In version 1.7.0, this should work without defining the environment variable.
Thanks Brandon and sorry for not seeing that!
Please provide the environment you discovered this bug in.
OS: Windows Browser: Firefox/Chrome ENV: Local
Which area/package is the issue in?
create-analog
Description
Hey folks, I have a strange bug that I cannot debug in any way.
Basically whenever I add *.server.ts file next to my page, the server then throws an error
ERROR TypeError: Invalid URL
And my page starts to render on the client instead of server side. I tried to check closed issues, but haven't really found anything.
With *.server.ts file:
Without:
Please provide the exception or error you saw
Other information
This is my package.json
I would be willing to submit a PR to fix this issue