T
TanStack3mo ago
vicious-gold

SPA mode doesn't generate _shell.html

Hey all, I've enabled SPA mode in my app, but no _shell.html is appearing in the output when I run build. I'm using the aws-lambda preset. Does anyone know why this might be? The app still appears to build, but the output structure looks identical to before enabling SPA mode, so I'm not convinced this is working. Thanks!
2 Replies
vicious-gold
vicious-goldOP3mo ago
Config is below
export default defineConfig({
plugins: [
tsconfigPaths(),
tailwindcss(),
tanstackStart({
tsr: {
srcDirectory: "./web/_app",
},
target: "aws-lambda",
spa: {
enabled: true,
},
}),
],
build: {
target: "esnext",
emptyOutDir: true,
},
define,
ssr: {
noExternal: ["@apollo/client"],
},
})
export default defineConfig({
plugins: [
tsconfigPaths(),
tailwindcss(),
tanstackStart({
tsr: {
srcDirectory: "./web/_app",
},
target: "aws-lambda",
spa: {
enabled: true,
},
}),
],
build: {
target: "esnext",
emptyOutDir: true,
},
define,
ssr: {
noExternal: ["@apollo/client"],
},
})
fair-rose
fair-rose3mo ago
does this work with another target?

Did you find this page helpful?