Fix build
This commit is contained in:
parent
905a2a918d
commit
e12538a591
3 changed files with 2 additions and 14 deletions
|
@ -4,12 +4,7 @@ import esbuild from 'esbuild';
|
|||
import { relative as relativePath } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
import {
|
||||
defaultImageConfig,
|
||||
getImageConfig,
|
||||
throwIfAssetsNotEnabled,
|
||||
type VercelImageConfig,
|
||||
} from '../image/shared.js';
|
||||
import { defaultImageConfig, getImageConfig, type VercelImageConfig } from '../image/shared.js';
|
||||
import {
|
||||
copyFilesToFunction,
|
||||
getFilesFromFolder,
|
||||
|
@ -91,7 +86,6 @@ export default function vercelEdge({
|
|||
});
|
||||
},
|
||||
'astro:config:done': ({ setAdapter, config }) => {
|
||||
throwIfAssetsNotEnabled(config, imageService);
|
||||
setAdapter(getAdapter());
|
||||
_config = config;
|
||||
buildTempFolder = config.build.server;
|
||||
|
|
|
@ -4,7 +4,6 @@ import glob from 'fast-glob';
|
|||
import { basename } from 'node:path';
|
||||
import { fileURLToPath, pathToFileURL } from 'node:url';
|
||||
import { defaultImageConfig, getImageConfig, type VercelImageConfig } from '../image/shared.js';
|
||||
import { exposeEnv } from '../lib/env.js';
|
||||
import { getVercelOutput, removeDir, writeJson } from '../lib/fs.js';
|
||||
import { copyDependenciesToFunction } from '../lib/nft.js';
|
||||
import { getRedirects } from '../lib/redirects.js';
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
import type { AstroAdapter, AstroConfig, AstroIntegration } from 'astro';
|
||||
|
||||
import {
|
||||
defaultImageConfig,
|
||||
getImageConfig,
|
||||
throwIfAssetsNotEnabled,
|
||||
type VercelImageConfig,
|
||||
} from '../image/shared.js';
|
||||
import { defaultImageConfig, getImageConfig, type VercelImageConfig } from '../image/shared.js';
|
||||
import { emptyDir, getVercelOutput, writeJson } from '../lib/fs.js';
|
||||
import { isServerLikeOutput } from '../lib/prerender.js';
|
||||
import { getRedirects } from '../lib/redirects.js';
|
||||
|
|
Loading…
Add table
Reference in a new issue