direct link?
Hello. Is it possible to directly link to a page? If not, any suggestions?
This is my App.jsx page. It is an app that is behind a login. If no session it goes to the login, if it's a nonexistent page it goes to a custom 404. It's hosted on Netlify. It worked locally. Any ideas/thoughts/suggestions? Thanks.
13 Replies
I don't really understand the question. What isn't working w your setup?
If I type in my browser: https://site.com/public -- the public page doesn't load. Just the default Netlify 404.
did u use the netlify adapter?
SolidStart Beta Documentation
SolidStart Beta Documentation
Early release documentation and resources for SolidStart Beta
No, I haven't touched anything in solid-start
cool, then that's most likely the issue
just npm the
solid-start-netlify
and add it to your vite.config like the link i sent uThanks. I'll give it at try.
From the link, should I use Netlify functions & edge or Static Hosting
Depends on if you are deploying on the edge or not
I don't believe I'm on the edge
Then I would try first without that
{edge: true}
Just adapter: netlify()
basicallyI guess all sites are on the edge by default.
still nothing.
Can we take a look at your
vite.config.ts
? that would be helpful in diagnosing your issue, also any logs during the Netlify build process or http logs for the route you're trying to hit.
In general though, @bigmistqke is trying to get you setup with the vite adapter for Netlify so that your build is done correctly and thus Netlify's servers will be looking in the place where your build is outputted. Here is an example config, and basically what yours should look like:
The answer is to have a
netlify.toml
file in the root with redirects: