router icon indicating copy to clipboard operation
router copied to clipboard

Can not customize `app` folder

Open logan-anderson opened this issue 1 year ago • 0 comments

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

  1. Create a start app
  2. Put app folder into src folder
  3. Customize appDirectory: "./src/app",
  4. Open localhost:3000
  5. 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

logan-anderson avatar Oct 20 '24 14:10 logan-anderson