T
TanStack11mo ago
provincial-silver

_build / wss via host: true

Hey, i'm in the "middle" of migrating over to TS Start. My old vite.config.js has this:
import { defineConfig } from 'vite'
import path from "path"
import viteReact from '@vitejs/plugin-react'
import { TanStackRouterVite } from '@tanstack/router-plugin/vite'

// https://vitejs.dev/config/
export default defineConfig({
server: {
host: true,
hmr: {
protocol: "https",
}
},
plugins: [
TanStackRouterVite(),
viteReact()
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})
import { defineConfig } from 'vite'
import path from "path"
import viteReact from '@vitejs/plugin-react'
import { TanStackRouterVite } from '@tanstack/router-plugin/vite'

// https://vitejs.dev/config/
export default defineConfig({
server: {
host: true,
hmr: {
protocol: "https",
}
},
plugins: [
TanStackRouterVite(),
viteReact()
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})
My setup is running through docker and possible with https. right now i get (picture). i fixed it in vite with
host: true,
hmr: {
protocol: "https",
}
host: true,
hmr: {
protocol: "https",
}
how would that work in vinxi?
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?