| 68 | }; |
| 69 | |
| 70 | const getFixtureConfig = (vercelJson: VercelJson | null) => { |
| 71 | if (!vercelJson) { |
| 72 | return defaultConfig; |
| 73 | } |
| 74 | const { |
| 75 | rootDirectory, |
| 76 | installCommand, |
| 77 | buildCommand, |
| 78 | outputDirectory, |
| 79 | framework, |
| 80 | functions, |
| 81 | } = vercelJson; |
| 82 | return { |
| 83 | ...defaultConfig, |
| 84 | // @ts-expect-error - functions is not typed |
| 85 | ...(functions && { functions }), |
| 86 | projectSettings: { |
| 87 | ...defaultConfig.projectSettings, |
| 88 | ...(rootDirectory && { rootDirectory }), |
| 89 | ...(installCommand && { installCommand }), |
| 90 | ...(buildCommand && { buildCommand }), |
| 91 | ...(outputDirectory && { outputDirectory }), |
| 92 | ...(framework && { framework }), |
| 93 | }, |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | // Set to true to use packages/backends/debug instead of a temp directory |
| 98 | const USE_DEBUG_DIR = false; |