Skip to content

files in the public directory are served at the root path. #14201

Answered by nicitaacom
nicitaacom asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you this solution work for me

tsconfig.json

 "paths": {
      "/*": ["./*", "./public/*"]
    }

vite.config.ts

import { defineConfig } from "vite"

export default defineConfig({})

Replies: 7 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@nicitaacom
Comment options

Comment options

You must be logged in to vote
3 replies
@nicitaacom
Comment options

@kimchristiansen
Comment options

@nicitaacom
Comment options

Comment options

You must be logged in to vote
1 reply
@nicitaacom
Comment options

Comment options

You must be logged in to vote
3 replies
@nicitaacom
Comment options

@s3xysteak
Comment options

@s3xysteak
Comment options

Comment options

You must be logged in to vote
1 reply
@nicitaacom
Comment options

Answer selected by nicitaacom
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants