router
router copied to clipboard
Can not customize `app` folder
Which project does this relate to?
Start
Describe the bug
I can not understand how to customize the app folder in tanstack start. I tried customizing my app.config file in the following ways
import { defineConfig } from "@tanstack/start/config";
export default defineConfig({
tsr: {
appDirectory: "/src/app",
apiBase: "/src/api",
},
});
import { defineConfig } from "@tanstack/start/config";
export default defineConfig({
tsr: {
appDirectory: "./src/app",
},
});
import { defineConfig } from "@tanstack/start/config";
export default defineConfig({
tsr: {
appDirectory: "/src/app",
},
});
And none of them worked. Looking at the code it seems like appDirectory is not being used. If it is being used, it is only being passed to vinxi which does not accept and appDirectory prop.
Your Example Website or App
https://stackblitz.com/github/tanstack/router/tree/main/examples/react/start-counter
Steps to Reproduce the Bug or Issue
- Create a start app
- Put app folder into src folder
- Customize
appDirectory: "./src/app", - Open localhost:3000
- Get an error
Expected behavior
I should be able to customize app folder
Screenshots or Videos
No response
Platform
- OS: Macos
- Browser: Chrome
- Version: Latest
Additional context
No response