Skip to content
Source
Sign inSign up
TanStack/router

fix: basepath #5345

Mergedschiller-manuel(GitHub profile, opens in a new tab)merged 9 commits intomain fromrefs/pull/5345/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 19 changed files with 23 additions and 5 deletions (loading 16).

x
0 of 19 viewed, 19 left
1 addition and 0 deletionsexamples/react/start-basic/vite.config.tsModified
View file
@@ -4,6 +4,7 @@
import viteReact from '@vitejs/plugin-react'
​
export default defineConfig({
+ base: '/foo/',
server: {
port: 3000,
},
21 additions and 4 deletionspackages/nitro-v2-vite-plugin/src/index.tsModified
View file
@@ -1,13 +1,23 @@
import { build, copyPublicAssets, createNitro, prepare } from 'nitropack'
import { dirname, resolve } from 'pathe'
​
-import type { PluginOption, Rollup } from 'vite'
+import type { PluginOption, ResolvedConfig, Rollup } from 'vite'
import type { NitroConfig } from 'nitropack'
​
let ssrBundle: Rollup.OutputBundle
let ssrEntryFile: string
​
+function isFullUrl(str: string): boolean {
+ try {
+ new URL(str)