ObjectThis configuration option only applies to server-side routing and can customize the access route of resources under config/public/.
The key of the object is the relative file path of the config/public/ (without using ./), and the value can be a string.
export default defineConfig({
server: {
publicRoutes: {
// Set a long route
'index.json': '/user-config/card-info/extra/help.json',
// Set a route without a suffix
'robot.txt': '/app/authentication',
},
},
});