Wildcard routes for 404/not found redirects?
I don't see a way to make this possible at the moment.
15 Replies
You can technically do it as of now by modifying the template wasp uses to build your app
I can show you if you're interested in that, but pretty sure @Wasp Team might have a better idea π
This is an open issue for us π https://github.com/wasp-lang/wasp/issues/266
We'll solve it soonish π for the next release (should be out in less than a month)
Woo thanks guys! This and favicons are all I need and Iβm gonna launch my app to the public!
Don't listen to @Zeko369 he solves everything by turning Wasp inside out
π
Kidding, that (modifying templates) is a resourceful way to patch Wasp when something is missing!
π
awesome! looking forward to seeing it live π
^ @Zeko369 in action π
ππππ
Wohooo @Zeko369, you just became a Waspeteer level 9!
Hey folks, is there another solution for wildcard routes while we wait for the dev team to implement this?
Soooo, it seems it perfectly possible to do this already in Wasp π
You can do this, and it will catch any routes:
This probably needs to be the last route in the main.wasp though right?
I think so yes π