router icon indicating copy to clipboard operation
router copied to clipboard

Absolute paths get included in the build artifacts (files)

Open antitoxic opened this issue 6 months ago • 0 comments

Which project does this relate to?

Start

Describe the bug

Cross-posting from discord: https://discord.com/channels/719702312431386674/1385153236604031026/1385159859091279872

This is generated by the default from tanstack start basic example where the only thing I've changed is removed tailwind and just use some basic global css imported like import appCss from '../global.css?url';

The createServerFnStaticCache includes a publicUrl which is absolute path.

Also .tanstack-start/build/server/server-functions-manifest.json has extractedFilename with absolute path

.vercel/output/static/.vite/manifest.json also has the global css as absolute path. (same in .tanstack-start dir)

And .vercel/output/static/assets/main-<hash>.js has some absolute path but it's minified so I can't really tell where. (same in .tanstack-start dir)

Your Example Website or App

start-basic

Steps to Reproduce the Bug or Issue

  1. https://tanstack.com/start/latest/docs/framework/react/quick-start#impatient
  2. Run pnpm build / npm run build

Expected behavior

I don't have absolute paths in build artifacts.

Screenshots or Videos

Image

Platform

  • OS: macOS
  • Browser: n/a
  • Version: ^1.121.24

Additional context

No response

antitoxic avatar Jun 19 '25 08:06 antitoxic