Skip to content

Absolute paths get included in the build artifacts (files) #4469

Open
@antitoxic

Description

@antitoxic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions