I tried integrating docs with main website as done...
# off-topic
b
I tried integrating docs with main website as done in https://github.com/supabase/supabase/blob/master/apps/www/next.config.js but it's not working locally also not in my case : here is more details on the issue : https://stackoverflow.com/questions/72546983/unable-to-rewrite-url-in-next-js
m
Have you tried?
Copy code
source: '/docs*',
        destination: '/docs',
I think that I missed the point, but you got an answer on SO: https://stackoverflow.com/a/72547383/2188186
b
It gives error : Error parsing
/docs*
https://nextjs.org/docs/messages/invalid-route-source Reason: Unexpected MODIFIER at 5, expected END /docs* ^
source
parse failed for route {"source":"/docs*","destination":"http://localhost:4000/docs/intro1"}
I trieed that but ir's working on manually refreshing page
Is it possible to know how can we connect docs to main website as done in supabase => https://supabase.com/docs . Query is posted in https://stackoverflow.com/questions/72544932/how-to-add-a-docusaurus-website-within-next-js-website-as-a-route. Many Thanks
4 Views