Wildcard routes for 404/not found redirects?

I don't see a way to make this possible at the moment.
15 Replies
Zeko369
Zeko369β€’2y ago
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 πŸ˜…
miho
mihoβ€’2y ago
We'll solve it soonish πŸ˜„ for the next release (should be out in less than a month)
SoyMilkIsOk
SoyMilkIsOkOPβ€’2y ago
Woo thanks guys! This and favicons are all I need and I’m gonna launch my app to the public!
martinsos
martinsosβ€’2y ago
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!
Zeko369
Zeko369β€’2y ago
😜
Vinny (@Wasp)
Vinny (@Wasp)β€’2y ago
awesome! looking forward to seeing it live πŸ™‚
matijash
matijashβ€’2y ago
^ @Zeko369 in action πŸ˜„
Zeko369
Zeko369β€’2y ago
πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚
MEE6
MEE6β€’2y ago
Wohooo @Zeko369, you just became a Waspeteer level 9!
crunchyTaco
crunchyTacoβ€’9mo ago
Hey folks, is there another solution for wildcard routes while we wait for the dev team to implement this?
miho
mihoβ€’9mo ago
Soooo, it seems it perfectly possible to do this already in Wasp πŸ™‚ You can do this, and it will catch any routes:
route WildcardRoute { path: "*", to: WildcardPage }
page WildcardPage {
component: import { WildcardPage } from "@src/Test"
}
route WildcardRoute { path: "*", to: WildcardPage }
page WildcardPage {
component: import { WildcardPage } from "@src/Test"
}
No description
martinsos
martinsosβ€’9mo ago
This probably needs to be the last route in the main.wasp though right?
miho
mihoβ€’9mo ago
I think so yes πŸ‘
Want results from more Discord servers?
Add your server