how to deploy project to the sub path? #406
Answered
by
jakobrosenberg
yangshangbo
asked this question in
Q&A
-
i deployed my project to http://106.14.73.216/svelte-routify/ path; |
Beta Was this translation helpful? Give feedback.
Answered by
jakobrosenberg
Nov 12, 2021
Replies: 2 comments 6 replies
-
Is this Routify 3 and do you have a path by that name? |
Beta Was this translation helpful? Give feedback.
5 replies
-
Sorry about the delay on this. The last few days were crazy. 😅 Alternatively you can also create the router in the script<script>
import { Router, createRouter } from '@roxi/routify'
import routes from '../.routify/routes.default.js'
const router = createRouter({
routes,
urlRewrite: {
toExternal: url => '/subpath' + url,
toInternal: url => url.replace(/^\/subpath/, ''),
},
})
</script>
<Router {router} /> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yangshangbo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry about the delay on this. The last few days were crazy. 😅
I've created an example here
Alternatively you can also create the router in the script