Skip to content

Can not customize app folder #2600

Description

@logan-anderson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    startEverything about TanStack Start

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions