mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-12 21:07:46 +00:00
Compare commits
7 Commits
vercel-plu
...
@vercel/py
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1202ff7b2b | ||
|
|
abd9f019f1 | ||
|
|
edb5eead81 | ||
|
|
6b865ff753 | ||
|
|
4fd0734c48 | ||
|
|
f815421acb | ||
|
|
5da926fee1 |
15787
examples/nextjs/package-lock.json
generated
Normal file
15787
examples/nextjs/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2
examples/remix/.gitignore
vendored
2
examples/remix/.gitignore
vendored
@@ -5,4 +5,4 @@ node_modules
|
|||||||
.output
|
.output
|
||||||
|
|
||||||
public/build
|
public/build
|
||||||
api/build
|
api/_build
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const { createRequestHandler } = require("@remix-run/vercel");
|
const { createRequestHandler } = require("@remix-run/vercel");
|
||||||
|
|
||||||
module.exports = createRequestHandler({
|
module.exports = createRequestHandler({
|
||||||
build: require("./build")
|
build: require("./_build")
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,120 +0,0 @@
|
|||||||
/*
|
|
||||||
* You probably want to just delete this file; it's just for the demo pages.
|
|
||||||
*/
|
|
||||||
.remix-app {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
min-height: 100vh;
|
|
||||||
min-height: calc(100vh - env(safe-area-inset-bottom));
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix-app > * {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix-app__header {
|
|
||||||
padding-top: 1rem;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
border-bottom: 1px solid var(--color-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix-app__header-content {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix-app__header-home-link {
|
|
||||||
width: 106px;
|
|
||||||
height: 30px;
|
|
||||||
color: var(--color-foreground);
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix-app__header-nav ul {
|
|
||||||
list-style: none;
|
|
||||||
margin: 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix-app__header-nav li {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix-app__main {
|
|
||||||
flex: 1 1 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix-app__footer {
|
|
||||||
padding-top: 1rem;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
border-top: 1px solid var(--color-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix-app__footer-content {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix__page {
|
|
||||||
--gap: 1rem;
|
|
||||||
--space: 2rem;
|
|
||||||
display: grid;
|
|
||||||
grid-auto-rows: min-content;
|
|
||||||
gap: var(--gap);
|
|
||||||
padding-top: var(--space);
|
|
||||||
padding-bottom: var(--space);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media print, screen and (min-width: 640px) {
|
|
||||||
.remix__page {
|
|
||||||
--gap: 2rem;
|
|
||||||
grid-auto-rows: unset;
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (min-width: 1024px) {
|
|
||||||
.remix__page {
|
|
||||||
--gap: 4rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix__page > main > :first-child {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix__page > main > :last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix__page > aside {
|
|
||||||
margin: 0;
|
|
||||||
padding: 1.5ch 2ch;
|
|
||||||
border: solid 1px var(--color-border);
|
|
||||||
border-radius: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix__page > aside > :first-child {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix__page > aside > :last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix__form {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 1rem;
|
|
||||||
padding: 1rem;
|
|
||||||
border: 1px solid var(--color-border);
|
|
||||||
border-radius: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remix__form > * {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
8345
examples/remix/package-lock.json
generated
Normal file
8345
examples/remix/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -9,15 +9,15 @@
|
|||||||
"postinstall": "remix setup node"
|
"postinstall": "remix setup node"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@remix-run/react": "^1.0.5",
|
"@remix-run/react": "^1.0.6",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"remix": "^1.0.5",
|
"remix": "^1.0.6",
|
||||||
"@remix-run/serve": "^1.0.5",
|
"@remix-run/serve": "^1.0.6",
|
||||||
"@remix-run/vercel": "^1.0.5"
|
"@remix-run/vercel": "^1.0.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@remix-run/dev": "^1.0.5",
|
"@remix-run/dev": "^1.0.6",
|
||||||
"@types/react": "^17.0.24",
|
"@types/react": "^17.0.24",
|
||||||
"@types/react-dom": "^17.0.9",
|
"@types/react-dom": "^17.0.9",
|
||||||
"typescript": "^4.1.2"
|
"typescript": "^4.1.2"
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ module.exports = {
|
|||||||
appDirectory: "app",
|
appDirectory: "app",
|
||||||
browserBuildDirectory: "public/build",
|
browserBuildDirectory: "public/build",
|
||||||
publicPath: "/build/",
|
publicPath: "/build/",
|
||||||
serverBuildDirectory: "api/build"
|
serverBuildDirectory: "api/_build"
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vercel/build-utils",
|
"name": "@vercel/build-utils",
|
||||||
"version": "2.12.3-canary.24",
|
"version": "2.12.3-canary.26",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.js",
|
"types": "./dist/index.d.js",
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
"@types/node-fetch": "^2.1.6",
|
"@types/node-fetch": "^2.1.6",
|
||||||
"@types/semver": "6.0.0",
|
"@types/semver": "6.0.0",
|
||||||
"@types/yazl": "^2.4.1",
|
"@types/yazl": "^2.4.1",
|
||||||
"@vercel/frameworks": "0.5.1-canary.14",
|
"@vercel/frameworks": "0.5.1-canary.16",
|
||||||
"@vercel/ncc": "0.24.0",
|
"@vercel/ncc": "0.24.0",
|
||||||
"aggregate-error": "3.0.1",
|
"aggregate-error": "3.0.1",
|
||||||
"async-retry": "1.2.3",
|
"async-retry": "1.2.3",
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ export function convertRuntimeToPlugin(
|
|||||||
includeFiles: config.includeFiles,
|
includeFiles: config.includeFiles,
|
||||||
excludeFiles: config.excludeFiles,
|
excludeFiles: config.excludeFiles,
|
||||||
},
|
},
|
||||||
|
meta: {
|
||||||
|
avoidTopLevelInstall: true,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
pages[entrypoint] = {
|
pages[entrypoint] = {
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export interface Meta {
|
|||||||
filesRemoved?: string[];
|
filesRemoved?: string[];
|
||||||
env?: Env;
|
env?: Env;
|
||||||
buildEnv?: Env;
|
buildEnv?: Env;
|
||||||
|
avoidTopLevelInstall?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AnalyzeOptions {
|
export interface AnalyzeOptions {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vercel",
|
"name": "vercel",
|
||||||
"version": "23.1.3-canary.42",
|
"version": "23.1.3-canary.44",
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"description": "The command-line interface for Vercel",
|
"description": "The command-line interface for Vercel",
|
||||||
@@ -43,14 +43,14 @@
|
|||||||
"node": ">= 12"
|
"node": ">= 12"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vercel/build-utils": "2.12.3-canary.24",
|
"@vercel/build-utils": "2.12.3-canary.26",
|
||||||
"@vercel/go": "1.2.4-canary.4",
|
"@vercel/go": "1.2.4-canary.4",
|
||||||
"@vercel/node": "1.12.2-canary.7",
|
"@vercel/node": "1.12.2-canary.7",
|
||||||
"@vercel/python": "2.1.2-canary.0",
|
"@vercel/python": "2.1.2-canary.1",
|
||||||
"@vercel/ruby": "1.2.8-canary.4",
|
"@vercel/ruby": "1.2.8-canary.5",
|
||||||
"update-notifier": "4.1.0",
|
"update-notifier": "4.1.0",
|
||||||
"vercel-plugin-middleware": "0.0.0-canary.7",
|
"vercel-plugin-middleware": "0.0.0-canary.7",
|
||||||
"vercel-plugin-node": "1.12.2-canary.15"
|
"vercel-plugin-node": "1.12.2-canary.17"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@next/env": "11.1.2",
|
"@next/env": "11.1.2",
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
"@types/update-notifier": "5.1.0",
|
"@types/update-notifier": "5.1.0",
|
||||||
"@types/which": "1.3.2",
|
"@types/which": "1.3.2",
|
||||||
"@types/write-json-file": "2.2.1",
|
"@types/write-json-file": "2.2.1",
|
||||||
"@vercel/frameworks": "0.5.1-canary.14",
|
"@vercel/frameworks": "0.5.1-canary.16",
|
||||||
"@vercel/ncc": "0.24.0",
|
"@vercel/ncc": "0.24.0",
|
||||||
"@vercel/nft": "0.17.0",
|
"@vercel/nft": "0.17.0",
|
||||||
"@zeit/fun": "0.11.2",
|
"@zeit/fun": "0.11.2",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { assert } from 'console';
|
|||||||
import { createHash } from 'crypto';
|
import { createHash } from 'crypto';
|
||||||
import fs from 'fs-extra';
|
import fs from 'fs-extra';
|
||||||
import ogGlob from 'glob';
|
import ogGlob from 'glob';
|
||||||
import { isAbsolute, join, parse, relative, resolve } from 'path';
|
import { dirname, isAbsolute, join, parse, relative, resolve } from 'path';
|
||||||
import pluralize from 'pluralize';
|
import pluralize from 'pluralize';
|
||||||
import Client from '../util/client';
|
import Client from '../util/client';
|
||||||
import { VercelConfig } from '../util/dev/types';
|
import { VercelConfig } from '../util/dev/types';
|
||||||
@@ -136,9 +136,11 @@ export default async function main(client: Client) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Set process.env with loaded environment variables
|
// Set process.env with loaded environment variables
|
||||||
await processEnv(loadedEnvFiles);
|
processEnv(loadedEnvFiles);
|
||||||
|
|
||||||
const spawnOpts = {
|
const spawnOpts: {
|
||||||
|
env: Record<string, string | undefined>;
|
||||||
|
} = {
|
||||||
env: { ...combinedEnv, VERCEL: '1' },
|
env: { ...combinedEnv, VERCEL: '1' },
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -284,6 +286,18 @@ export default async function main(client: Client) {
|
|||||||
// Clean the output directory
|
// Clean the output directory
|
||||||
fs.removeSync(join(cwd, OUTPUT_DIR));
|
fs.removeSync(join(cwd, OUTPUT_DIR));
|
||||||
|
|
||||||
|
if (framework && process.env.VERCEL_URL && 'envPrefix' in framework) {
|
||||||
|
for (const key of Object.keys(process.env)) {
|
||||||
|
if (key.startsWith('VERCEL_')) {
|
||||||
|
const newKey = `${framework.envPrefix}${key}`;
|
||||||
|
// Set `process.env` and `spawnOpts.env` to make sure the variables are
|
||||||
|
// available to the `build` step and the CLI Plugins.
|
||||||
|
process.env[newKey] = process.env[newKey] || process.env[key];
|
||||||
|
spawnOpts.env[newKey] = process.env[newKey];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Yarn v2 PnP mode may be activated, so force
|
// Yarn v2 PnP mode may be activated, so force
|
||||||
// "node-modules" linker style
|
// "node-modules" linker style
|
||||||
const env = {
|
const env = {
|
||||||
@@ -315,22 +329,42 @@ export default async function main(client: Client) {
|
|||||||
cwd,
|
cwd,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// don't trust framework detection here because they might be switching to next on a branch
|
|
||||||
const isNextJs = fs.existsSync(join(cwd, '.next'));
|
|
||||||
|
|
||||||
if (!fs.existsSync(join(cwd, OUTPUT_DIR))) {
|
if (!fs.existsSync(join(cwd, OUTPUT_DIR))) {
|
||||||
let outputDir = join(OUTPUT_DIR, 'static');
|
let dotNextDir: string | null = null;
|
||||||
let distDir = await framework.getFsOutputDir(cwd);
|
|
||||||
if (isNextJs) {
|
// If a custom `outputDirectory` was set, we'll need to verify
|
||||||
outputDir = OUTPUT_DIR;
|
// if it's `.next` output, or just static output.
|
||||||
|
const userOutputDirectory = project.settings.outputDirectory;
|
||||||
|
|
||||||
|
if (typeof userOutputDirectory === 'string') {
|
||||||
|
if (fs.existsSync(join(cwd, userOutputDirectory, 'BUILD_ID'))) {
|
||||||
|
dotNextDir = join(cwd, userOutputDirectory);
|
||||||
|
client.output.debug(
|
||||||
|
`Consider ${param(userOutputDirectory)} as ${param('.next')} output.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} else if (fs.existsSync(join(cwd, '.next'))) {
|
||||||
|
dotNextDir = join(cwd, '.next');
|
||||||
|
client.output.debug(`Found ${param('.next')} directory.`);
|
||||||
}
|
}
|
||||||
const copyStamp = stamp();
|
|
||||||
|
// We cannot rely on the `framework` alone, as it might be a static export,
|
||||||
|
// and the current build might use a differnt project that's not in the settings.
|
||||||
|
const isNextOutput = Boolean(dotNextDir);
|
||||||
|
const outputDir = isNextOutput ? OUTPUT_DIR : join(OUTPUT_DIR, 'static');
|
||||||
|
const distDir =
|
||||||
|
dotNextDir ||
|
||||||
|
userOutputDirectory ||
|
||||||
|
(await framework.getFsOutputDir(cwd));
|
||||||
|
|
||||||
await fs.ensureDir(join(cwd, outputDir));
|
await fs.ensureDir(join(cwd, outputDir));
|
||||||
const relativeDistDir = relative(cwd, distDir);
|
|
||||||
|
const copyStamp = stamp();
|
||||||
client.output.spinner(
|
client.output.spinner(
|
||||||
`Copying files from ${param(distDir)} to ${param(outputDir)}`
|
`Copying files from ${param(distDir)} to ${param(outputDir)}`
|
||||||
);
|
);
|
||||||
const files = await glob(join(relativeDistDir, '**'), {
|
const files = await glob(join(relative(cwd, distDir), '**'), {
|
||||||
ignore: [
|
ignore: [
|
||||||
'node_modules/**',
|
'node_modules/**',
|
||||||
'.vercel/**',
|
'.vercel/**',
|
||||||
@@ -378,6 +412,7 @@ export default async function main(client: Client) {
|
|||||||
`Generating build manifest: ${param(buildManifestPath)}`
|
`Generating build manifest: ${param(buildManifestPath)}`
|
||||||
);
|
);
|
||||||
const buildManifest = {
|
const buildManifest = {
|
||||||
|
version: 1,
|
||||||
cache: framework.cachePattern ? [framework.cachePattern] : [],
|
cache: framework.cachePattern ? [framework.cachePattern] : [],
|
||||||
};
|
};
|
||||||
await fs.writeJSON(buildManifestPath, buildManifest, { spaces: 2 });
|
await fs.writeJSON(buildManifestPath, buildManifest, { spaces: 2 });
|
||||||
@@ -405,7 +440,7 @@ export default async function main(client: Client) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Special Next.js processing.
|
// Special Next.js processing.
|
||||||
if (isNextJs) {
|
if (isNextOutput) {
|
||||||
// The contents of `.output/static` should be placed inside of `.output/static/_next/static`
|
// The contents of `.output/static` should be placed inside of `.output/static/_next/static`
|
||||||
const tempStatic = '___static';
|
const tempStatic = '___static';
|
||||||
await fs.rename(
|
await fs.rename(
|
||||||
@@ -456,10 +491,12 @@ export default async function main(client: Client) {
|
|||||||
// `public`, then`static`). We can't read both at the same time because that would mean we'd
|
// `public`, then`static`). We can't read both at the same time because that would mean we'd
|
||||||
// read public for old Next.js versions that don't support it, which might be breaking (and
|
// read public for old Next.js versions that don't support it, which might be breaking (and
|
||||||
// we don't want to make vercel build specific framework versions).
|
// we don't want to make vercel build specific framework versions).
|
||||||
|
const nextSrcDirectory = dirname(distDir);
|
||||||
|
|
||||||
const publicFiles = await glob('public/**', {
|
const publicFiles = await glob('public/**', {
|
||||||
nodir: true,
|
nodir: true,
|
||||||
dot: true,
|
dot: true,
|
||||||
cwd,
|
cwd: nextSrcDirectory,
|
||||||
absolute: true,
|
absolute: true,
|
||||||
});
|
});
|
||||||
if (publicFiles.length > 0) {
|
if (publicFiles.length > 0) {
|
||||||
@@ -468,7 +505,11 @@ export default async function main(client: Client) {
|
|||||||
smartCopy(
|
smartCopy(
|
||||||
client,
|
client,
|
||||||
f,
|
f,
|
||||||
f.replace('public', join(OUTPUT_DIR, 'static'))
|
join(
|
||||||
|
OUTPUT_DIR,
|
||||||
|
'static',
|
||||||
|
relative(join(dirname(distDir), 'public'), f)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -476,7 +517,7 @@ export default async function main(client: Client) {
|
|||||||
const staticFiles = await glob('static/**', {
|
const staticFiles = await glob('static/**', {
|
||||||
nodir: true,
|
nodir: true,
|
||||||
dot: true,
|
dot: true,
|
||||||
cwd,
|
cwd: nextSrcDirectory,
|
||||||
absolute: true,
|
absolute: true,
|
||||||
});
|
});
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
@@ -484,7 +525,12 @@ export default async function main(client: Client) {
|
|||||||
smartCopy(
|
smartCopy(
|
||||||
client,
|
client,
|
||||||
f,
|
f,
|
||||||
f.replace('static', join(OUTPUT_DIR, 'static', 'static'))
|
join(
|
||||||
|
OUTPUT_DIR,
|
||||||
|
'static',
|
||||||
|
'static',
|
||||||
|
relative(join(dirname(distDir), 'static'), f)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -503,6 +549,7 @@ export default async function main(client: Client) {
|
|||||||
const nftFiles = await glob(join(OUTPUT_DIR, '**', '*.nft.json'), {
|
const nftFiles = await glob(join(OUTPUT_DIR, '**', '*.nft.json'), {
|
||||||
nodir: true,
|
nodir: true,
|
||||||
dot: true,
|
dot: true,
|
||||||
|
ignore: ['cache/**'],
|
||||||
cwd,
|
cwd,
|
||||||
absolute: true,
|
absolute: true,
|
||||||
});
|
});
|
||||||
@@ -539,6 +586,7 @@ export default async function main(client: Client) {
|
|||||||
baseDir,
|
baseDir,
|
||||||
outputDir: OUTPUT_DIR,
|
outputDir: OUTPUT_DIR,
|
||||||
nftFileName: f.replace(ext, '.js.nft.json'),
|
nftFileName: f.replace(ext, '.js.nft.json'),
|
||||||
|
distDir,
|
||||||
nft: {
|
nft: {
|
||||||
version: 1,
|
version: 1,
|
||||||
files: Array.from(fileList).map(fileListEntry =>
|
files: Array.from(fileList).map(fileListEntry =>
|
||||||
@@ -556,10 +604,12 @@ export default async function main(client: Client) {
|
|||||||
outputDir: OUTPUT_DIR,
|
outputDir: OUTPUT_DIR,
|
||||||
nftFileName: f,
|
nftFileName: f,
|
||||||
nft: json,
|
nft: json,
|
||||||
|
distDir,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client.output.debug(`Resolve ${param('required-server-files.json')}.`);
|
||||||
const requiredServerFilesPath = join(
|
const requiredServerFilesPath = join(
|
||||||
OUTPUT_DIR,
|
OUTPUT_DIR,
|
||||||
'required-server-files.json'
|
'required-server-files.json'
|
||||||
@@ -571,11 +621,14 @@ export default async function main(client: Client) {
|
|||||||
...requiredServerFilesJson,
|
...requiredServerFilesJson,
|
||||||
appDir: '.',
|
appDir: '.',
|
||||||
files: requiredServerFilesJson.files.map((i: string) => {
|
files: requiredServerFilesJson.files.map((i: string) => {
|
||||||
const absolutePath = join(cwd, i.replace('.next', '.output'));
|
const originalPath = join(dirname(distDir), i);
|
||||||
|
const relPath = join(OUTPUT_DIR, relative(distDir, originalPath));
|
||||||
|
|
||||||
|
const absolutePath = join(cwd, relPath);
|
||||||
const output = relative(baseDir, absolutePath);
|
const output = relative(baseDir, absolutePath);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
input: i.replace('.next', '.output'),
|
input: relPath,
|
||||||
output,
|
output,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
@@ -758,24 +811,37 @@ async function resolveNftToOutput({
|
|||||||
baseDir,
|
baseDir,
|
||||||
outputDir,
|
outputDir,
|
||||||
nftFileName,
|
nftFileName,
|
||||||
|
distDir,
|
||||||
nft,
|
nft,
|
||||||
}: {
|
}: {
|
||||||
client: Client;
|
client: Client;
|
||||||
baseDir: string;
|
baseDir: string;
|
||||||
outputDir: string;
|
outputDir: string;
|
||||||
nftFileName: string;
|
nftFileName: string;
|
||||||
|
distDir: string;
|
||||||
nft: NftFile;
|
nft: NftFile;
|
||||||
}) {
|
}) {
|
||||||
client.output.debug(`Processing and resolving ${nftFileName}`);
|
client.output.debug(`Processing and resolving ${nftFileName}`);
|
||||||
await fs.ensureDir(join(outputDir, 'inputs'));
|
await fs.ensureDir(join(outputDir, 'inputs'));
|
||||||
const newFilesList: NftFile['files'] = [];
|
const newFilesList: NftFile['files'] = [];
|
||||||
|
|
||||||
|
// If `distDir` is a subdirectory, then the input has to be resolved to where the `.output` directory will be.
|
||||||
|
const relNftFileName = relative(outputDir, nftFileName);
|
||||||
|
const origNftFilename = join(distDir, relNftFileName);
|
||||||
|
|
||||||
|
if (relNftFileName.startsWith('cache/')) {
|
||||||
|
// No need to process the `cache/` directory.
|
||||||
|
// Paths in it might also not be relative to `cache` itself.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (let fileEntity of nft.files) {
|
for (let fileEntity of nft.files) {
|
||||||
const relativeInput: string =
|
const relativeInput =
|
||||||
typeof fileEntity === 'string' ? fileEntity : fileEntity.input;
|
typeof fileEntity === 'string' ? fileEntity : fileEntity.input;
|
||||||
const fullInput = resolve(join(parse(nftFileName).dir, relativeInput));
|
const fullInput = resolve(join(parse(origNftFilename).dir, relativeInput));
|
||||||
|
|
||||||
// if the resolved path is NOT in the .output directory we move in it there
|
// if the resolved path is NOT in the .output directory we move in it there
|
||||||
if (!fullInput.includes(outputDir)) {
|
if (!fullInput.includes(distDir)) {
|
||||||
const { ext } = parse(fullInput);
|
const { ext } = parse(fullInput);
|
||||||
const raw = await fs.readFile(fullInput);
|
const raw = await fs.readFile(fullInput);
|
||||||
const newFilePath = join(outputDir, 'inputs', hash(raw) + ext);
|
const newFilePath = join(outputDir, 'inputs', hash(raw) + ext);
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ export type ProjectLinkAndSettings = ProjectLink & {
|
|||||||
buildCommand: Project['buildCommand'];
|
buildCommand: Project['buildCommand'];
|
||||||
devCommand: Project['devCommand'];
|
devCommand: Project['devCommand'];
|
||||||
outputDirectory: Project['outputDirectory'];
|
outputDirectory: Project['outputDirectory'];
|
||||||
|
directoryListing: Project['directoryListing'];
|
||||||
rootDirectory: Project['rootDirectory'];
|
rootDirectory: Project['rootDirectory'];
|
||||||
framework: Project['framework'];
|
framework: Project['framework'];
|
||||||
};
|
};
|
||||||
@@ -29,6 +30,7 @@ export async function writeProjectSettings(
|
|||||||
settings: {
|
settings: {
|
||||||
buildCommand: project.buildCommand,
|
buildCommand: project.buildCommand,
|
||||||
devCommand: project.devCommand,
|
devCommand: project.devCommand,
|
||||||
|
outputDirectory: project.outputDirectory,
|
||||||
directoryListing: project.directoryListing,
|
directoryListing: project.directoryListing,
|
||||||
rootDirectory: project.rootDirectory,
|
rootDirectory: project.rootDirectory,
|
||||||
framework: project.framework,
|
framework: project.framework,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vercel/client",
|
"name": "@vercel/client",
|
||||||
"version": "10.2.3-canary.25",
|
"version": "10.2.3-canary.27",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"homepage": "https://vercel.com",
|
"homepage": "https://vercel.com",
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vercel/build-utils": "2.12.3-canary.24",
|
"@vercel/build-utils": "2.12.3-canary.26",
|
||||||
"@zeit/fetch": "5.2.0",
|
"@zeit/fetch": "5.2.0",
|
||||||
"async-retry": "1.2.3",
|
"async-retry": "1.2.3",
|
||||||
"async-sema": "3.0.0",
|
"async-sema": "3.0.0",
|
||||||
|
|||||||
6
packages/frameworks/logos/remix-no-shadow.svg
Normal file
6
packages/frameworks/logos/remix-no-shadow.svg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<svg viewBox="0 0 800 800" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M700 0H100C44.772 0 0 44.772 0 100v600c0 55.228 44.772 100 100 100h600c55.228 0 100-44.772 100-100V100C800 44.772 755.228 0 700 0Z" fill="#212121"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M587.947 527.768c4.254 54.65 4.254 80.268 4.254 108.232H465.756c0-6.091.109-11.663.219-17.313.342-17.564.699-35.88-2.147-72.868-3.761-54.152-27.08-66.185-69.957-66.185H195v-98.525h204.889c54.16 0 81.241-16.476 81.241-60.098 0-38.357-27.081-61.601-81.241-61.601H195V163h227.456C545.069 163 606 220.912 606 313.42c0 69.193-42.877 114.319-100.799 121.84 48.895 9.777 77.48 37.605 82.746 92.508Z" fill="#fff"/>
|
||||||
|
<path d="M195 636v-73.447h133.697c22.332 0 27.181 16.563 27.181 26.441V636H195Z" fill="#fff"/>
|
||||||
|
<path d="M194.5 636v.5h161.878v-47.506c0-5.006-1.226-11.734-5.315-17.224-4.108-5.515-11.059-9.717-22.366-9.717H194.5V636Z" stroke="#fff" stroke-opacity=".8"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 958 B |
@@ -1,25 +1,6 @@
|
|||||||
<svg width="800" height="800" viewBox="0 0 800 800" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg viewBox="0 0 800 800" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<rect width="800" height="800" fill="#212121"/>
|
<path d="M700 0H100C44.772 0 0 44.772 0 100v600c0 55.228 44.772 100 100 100h600c55.228 0 100-44.772 100-100V100C800 44.772 755.228 0 700 0Z" fill="#212121"/>
|
||||||
<g filter="url(#filter0_dd_126_53)">
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M587.947 527.768c4.254 54.65 4.254 80.268 4.254 108.232H465.756c0-6.091.109-11.663.219-17.313.342-17.564.699-35.88-2.147-72.868-3.761-54.152-27.08-66.185-69.957-66.185H195v-98.525h204.889c54.16 0 81.241-16.476 81.241-60.098 0-38.357-27.081-61.601-81.241-61.601H195V163h227.456C545.069 163 606 220.912 606 313.42c0 69.193-42.877 114.319-100.799 121.84 48.895 9.777 77.48 37.605 82.746 92.508Z" fill="#fff"/>
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M587.947 527.768C592.201 582.418 592.201 608.036 592.201 636H465.756C465.756 629.909 465.865 624.337 465.975 618.687C466.317 601.123 466.674 582.807 463.828 545.819C460.067 491.667 436.748 479.634 393.871 479.634H355.883H195V381.109H399.889C454.049 381.109 481.13 364.633 481.13 321.011C481.13 282.654 454.049 259.41 399.889 259.41H195V163H422.456C545.069 163 606 220.912 606 313.42C606 382.613 563.123 427.739 505.201 435.26C554.096 445.037 582.681 472.865 587.947 527.768Z" fill="#E8F2FF"/>
|
<path d="M195 636v-73.447h133.697c22.332 0 27.181 16.563 27.181 26.441V636H195Z" fill="#fff"/>
|
||||||
<path d="M195 636V562.553H328.697C351.029 562.553 355.878 579.116 355.878 588.994V636H195Z" fill="#E8F2FF"/>
|
<path d="M194.5 636v.5h161.878v-47.506c0-5.006-1.226-11.734-5.315-17.224-4.108-5.515-11.059-9.717-22.366-9.717H194.5V636Z" stroke="#fff" stroke-opacity=".8"/>
|
||||||
</g>
|
|
||||||
<defs>
|
|
||||||
<filter id="filter0_dd_126_53" x="131" y="99" width="539" height="601" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
||||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
||||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
||||||
<feOffset/>
|
|
||||||
<feGaussianBlur stdDeviation="28"/>
|
|
||||||
<feComposite in2="hardAlpha" operator="out"/>
|
|
||||||
<feColorMatrix type="matrix" values="0 0 0 0 0.223529 0 0 0 0 0.572549 0 0 0 0 1 0 0 0 1 0"/>
|
|
||||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_126_53"/>
|
|
||||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
||||||
<feOffset/>
|
|
||||||
<feGaussianBlur stdDeviation="32"/>
|
|
||||||
<feComposite in2="hardAlpha" operator="out"/>
|
|
||||||
<feColorMatrix type="matrix" values="0 0 0 0 0.223529 0 0 0 0 0.572549 0 0 0 0 1 0 0 0 0.9 0"/>
|
|
||||||
<feBlend mode="normal" in2="effect1_dropShadow_126_53" result="effect2_dropShadow_126_53"/>
|
|
||||||
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_126_53" result="shape"/>
|
|
||||||
</filter>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 958 B |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vercel/frameworks",
|
"name": "@vercel/frameworks",
|
||||||
"version": "0.5.1-canary.14",
|
"version": "0.5.1-canary.16",
|
||||||
"main": "./dist/frameworks.js",
|
"main": "./dist/frameworks.js",
|
||||||
"types": "./dist/frameworks.d.ts",
|
"types": "./dist/frameworks.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ export const frameworks = [
|
|||||||
name: 'Remix',
|
name: 'Remix',
|
||||||
slug: 'remix',
|
slug: 'remix',
|
||||||
demo: 'https://remix.examples.vercel.com',
|
demo: 'https://remix.examples.vercel.com',
|
||||||
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix.svg',
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix-no-shadow.svg',
|
||||||
tagline: 'Build Better Websites',
|
tagline: 'Build Better Websites',
|
||||||
description: 'A new Remix app — the result of running `npx create-remix`.',
|
description: 'A new Remix app — the result of running `npx create-remix`.',
|
||||||
website: 'https://remix.run',
|
website: 'https://remix.run',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": false,
|
"private": false,
|
||||||
"name": "vercel-plugin-go",
|
"name": "vercel-plugin-go",
|
||||||
"version": "1.0.0-canary.9",
|
"version": "1.0.0-canary.11",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
"prepublishOnly": "tsc"
|
"prepublishOnly": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vercel/build-utils": "2.12.3-canary.24",
|
"@vercel/build-utils": "2.12.3-canary.26",
|
||||||
"@vercel/go": "1.2.4-canary.4"
|
"@vercel/go": "1.2.4-canary.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vercel-plugin-node",
|
"name": "vercel-plugin-node",
|
||||||
"version": "1.12.2-canary.15",
|
"version": "1.12.2-canary.17",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./dist/index",
|
"main": "./dist/index",
|
||||||
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
"@types/node-fetch": "2",
|
"@types/node-fetch": "2",
|
||||||
"@types/test-listen": "1.1.0",
|
"@types/test-listen": "1.1.0",
|
||||||
"@types/yazl": "2.4.2",
|
"@types/yazl": "2.4.2",
|
||||||
"@vercel/build-utils": "2.12.3-canary.24",
|
"@vercel/build-utils": "2.12.3-canary.26",
|
||||||
"@vercel/fun": "1.0.3",
|
"@vercel/fun": "1.0.3",
|
||||||
"@vercel/ncc": "0.24.0",
|
"@vercel/ncc": "0.24.0",
|
||||||
"@vercel/nft": "0.14.0",
|
"@vercel/nft": "0.14.0",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": false,
|
"private": false,
|
||||||
"name": "vercel-plugin-python",
|
"name": "vercel-plugin-python",
|
||||||
"version": "1.0.0-canary.10",
|
"version": "1.0.0-canary.12",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
"prepublishOnly": "tsc"
|
"prepublishOnly": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vercel/build-utils": "2.12.3-canary.24",
|
"@vercel/build-utils": "2.12.3-canary.26",
|
||||||
"@vercel/python": "2.1.2-canary.0"
|
"@vercel/python": "2.1.2-canary.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "*",
|
"@types/node": "*",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": false,
|
"private": false,
|
||||||
"name": "vercel-plugin-ruby",
|
"name": "vercel-plugin-ruby",
|
||||||
"version": "1.0.0-canary.8",
|
"version": "1.0.0-canary.10",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
"prepublishOnly": "tsc"
|
"prepublishOnly": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vercel/build-utils": "2.12.3-canary.24",
|
"@vercel/build-utils": "2.12.3-canary.26",
|
||||||
"@vercel/ruby": "1.2.8-canary.4"
|
"@vercel/ruby": "1.2.8-canary.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "*",
|
"@types/node": "*",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vercel/python",
|
"name": "@vercel/python",
|
||||||
"version": "2.1.2-canary.0",
|
"version": "2.1.2-canary.1",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { relative, basename } from 'path';
|
||||||
import execa from 'execa';
|
import execa from 'execa';
|
||||||
import { Meta, debug } from '@vercel/build-utils';
|
import { Meta, debug } from '@vercel/build-utils';
|
||||||
|
|
||||||
@@ -135,6 +136,18 @@ export async function installRequirementsFile({
|
|||||||
meta,
|
meta,
|
||||||
args = [],
|
args = [],
|
||||||
}: InstallRequirementsFileArg) {
|
}: InstallRequirementsFileArg) {
|
||||||
|
const fileAtRoot = relative(workPath, filePath) === basename(filePath);
|
||||||
|
|
||||||
|
// If the `requirements.txt` file is located in the Root Directory of the project and
|
||||||
|
// the new File System API is used (`avoidTopLevelInstall`), the Install Command
|
||||||
|
// will have already installed its dependencies, so we don't need to do it again.
|
||||||
|
if (meta.avoidTopLevelInstall && fileAtRoot) {
|
||||||
|
debug(
|
||||||
|
`Skipping requirements file installation, already installed by Install Command`
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
meta.isDev &&
|
meta.isDev &&
|
||||||
(await areRequirementsInstalled(pythonPath, filePath, workPath))
|
(await areRequirementsInstalled(pythonPath, filePath, workPath))
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { join, dirname } from 'path';
|
import { join, dirname, relative } from 'path';
|
||||||
import execa from 'execa';
|
import execa from 'execa';
|
||||||
import {
|
import {
|
||||||
ensureDir,
|
ensureDir,
|
||||||
@@ -85,10 +85,12 @@ export async function build({
|
|||||||
}: BuildOptions) {
|
}: BuildOptions) {
|
||||||
await download(files, workPath, meta);
|
await download(files, workPath, meta);
|
||||||
const entrypointFsDirname = join(workPath, dirname(entrypoint));
|
const entrypointFsDirname = join(workPath, dirname(entrypoint));
|
||||||
|
const gemfileName = 'Gemfile';
|
||||||
|
|
||||||
const gemfilePath = await walkParentDirs({
|
const gemfilePath = await walkParentDirs({
|
||||||
base: workPath,
|
base: workPath,
|
||||||
start: entrypointFsDirname,
|
start: entrypointFsDirname,
|
||||||
filename: 'Gemfile',
|
filename: gemfileName,
|
||||||
});
|
});
|
||||||
const gemfileContents = gemfilePath
|
const gemfileContents = gemfilePath
|
||||||
? await readFile(gemfilePath, 'utf8')
|
? await readFile(gemfilePath, 'utf8')
|
||||||
@@ -130,15 +132,24 @@ export async function build({
|
|||||||
'did not find a vendor directory but found a Gemfile, bundling gems...'
|
'did not find a vendor directory but found a Gemfile, bundling gems...'
|
||||||
);
|
);
|
||||||
|
|
||||||
// try installing. this won't work if native extesions are required.
|
const fileAtRoot = relative(workPath, gemfilePath) === gemfileName;
|
||||||
// if that's the case, gems should be vendored locally before deploying.
|
|
||||||
try {
|
// If the `Gemfile` is located in the Root Directory of the project and
|
||||||
await bundleInstall(bundlerPath, bundleDir, gemfilePath);
|
// the new File System API is used (`avoidTopLevelInstall`), the Install Command
|
||||||
} catch (err) {
|
// will have already installed its dependencies, so we don't need to do it again.
|
||||||
debug(
|
if (meta.avoidTopLevelInstall && fileAtRoot) {
|
||||||
'unable to build gems from Gemfile. vendor the gems locally with "bundle install --deployment" and retry.'
|
debug('Skipping `bundle install` — already handled by Install Command');
|
||||||
);
|
} else {
|
||||||
throw err;
|
// try installing. this won't work if native extesions are required.
|
||||||
|
// if that's the case, gems should be vendored locally before deploying.
|
||||||
|
try {
|
||||||
|
await bundleInstall(bundlerPath, bundleDir, gemfilePath);
|
||||||
|
} catch (err) {
|
||||||
|
debug(
|
||||||
|
'unable to build gems from Gemfile. vendor the gems locally with "bundle install --deployment" and retry.'
|
||||||
|
);
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -61,6 +61,14 @@ function getRubyPath(meta: Meta, gemfileContents: string) {
|
|||||||
// process.env.GEM_HOME), and returns
|
// process.env.GEM_HOME), and returns
|
||||||
// the absolute path to it
|
// the absolute path to it
|
||||||
export async function installBundler(meta: Meta, gemfileContents: string) {
|
export async function installBundler(meta: Meta, gemfileContents: string) {
|
||||||
|
// If the new File System API is used (`avoidTopLevelInstall`), the Install Command
|
||||||
|
// will have already installed the dependencies, so we don't need to do it again.
|
||||||
|
if (meta.avoidTopLevelInstall) {
|
||||||
|
debug(
|
||||||
|
`Skipping bundler installation, already installed by Install Command`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const { gemHome, rubyPath, gemPath, vendorPath, runtime } = getRubyPath(
|
const { gemHome, rubyPath, gemPath, vendorPath, runtime } = getRubyPath(
|
||||||
meta,
|
meta,
|
||||||
gemfileContents
|
gemfileContents
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@vercel/ruby",
|
"name": "@vercel/ruby",
|
||||||
"author": "Nathan Cahill <nathan@nathancahill.com>",
|
"author": "Nathan Cahill <nathan@nathancahill.com>",
|
||||||
"version": "1.2.8-canary.4",
|
"version": "1.2.8-canary.5",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./dist/index",
|
"main": "./dist/index",
|
||||||
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/ruby",
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/ruby",
|
||||||
|
|||||||
Reference in New Issue
Block a user