Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

example of multiple routes\adapters in sveltekit

NotificationsYou must be signed in to change notification settings

nosovk/svelte-kit-multiple-routes-example

Repository files navigation

Illustration tosveltejs/kit#14240

how to use

inside env use those variables:

VITE_TYPE=pages#VITE_TYPE=staticVITE_ROUTE_SUFFIX=1#VITE_ROUTE_SUFFIX=2#VITE_ROUTE_SUFFIX=3#VITE_ROUTE_BASEPATH=

where:VITE_TYPE defines which adapter to useVITE_ROUTE_SUFFIX defines the suffix of the routeVITE_ROUTE_BASEPATH defines the basepath of the route

examples

VITE_TYPE=pagesVITE_ROUTE_SUFFIX=1

will lead to use of routes-pages-1 as entrypoint, and will be prepared for cloudflare pages deployment

VITE_TYPE=staticVITE_ROUTE_SUFFIX=2

will lead to use of routes-static-2 as entrypoint, and will be prepared for static files deployment

VITE_ROUTE_BASEPATH could be used to define a basepath for the routes, e.g. publishing lands to subroute

About

example of multiple routes\adapters in sveltekit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp