Код: Выделить всё
{
"version": 2,
"outputDirectory": "dist",
"builds": [
{
"src": "dist/index.js",
"use": "@vercel/node",
"config": { "includeFiles": ["dist/**"] }
}
],
"routes": [
{
"src": "/(.*)",
"dest": "dist/index.js"
}
]
}
Код: Выделить всё
{
"version": 2,
"outputDirectory": "dist",
"buildCommand": "npm run build",
"routes": [
{
"src": "/(.*)",
"dest": "dist/index.js"
}
]
}
"use": "@vercel/node",
в конфигурацию сборки, но если есть вариант: я не могу его найти или разобраться.
Есть ли способ добиться того, чего я хочу, или я застрял на проверке сгенерированного JavaScript?
Подробнее здесь: https://stackoverflow.com/questions/793 ... -in-vercel
Мобильная версия