Skip to content

how to deploy astro v6? #6697

@gregidonut

Description

@gregidonut

i used to use the astro-sst integration, but with the new astro version i'm getting errors

when running sst dev

03:08:06 [WARN] The adapter astro-sst uses `entrypointResolution: "explicit"` by default, which is deprecated and will be removed in a future major version.                                  
                   │ 03:08:06 [WARN] Update your adapter to use `entrypointResolution: "auto"` or contact the maintainers to update.                                                                               

when running sst deploy

03:11:47 [ERROR] [vite] ✗ Build failed in 866ms
../../node_modules/astro-sst/dist/entrypoint.js (2:18): "applyPolyfills" is not exported by "../../node_modules/astro/dist/core/app/entrypoints/node.js", imported by "../../node_modules/astro-sst/dist/entrypoint.js".
file: /home/atoferatofe/Workspace/udemy/sqldev/node_modules/astro-sst/dist/entrypoint.js:2:18

1: import fs from "fs/promises";
2: import { NodeApp, applyPolyfills } from "astro/app/node";
                     ^
3: import { convertFrom, convertTo } from "./lib/event-mapper.js";
4: import { debug } from "./lib/logger.js";

  Location:
    /home/atoferatofe/Workspace/udemy/sqldev/node_modules/astro-sst/dist/entrypoint.js:2:18
  Stack trace:
    at getRollupError (file:///home/atoferatofe/Workspace/udemy/sqldev/node_modules/rollup/dist/es/shared/parseAst.js:402:41)
    at Module.error (file:///home/atoferatofe/Workspace/udemy/sqldev/node_modules/rollup/dist/es/shared/node-entry.js:17040:16)
    at ModuleScope.findVariable (file:///home/atoferatofe/Workspace/udemy/sqldev/node_modules/rollup/dist/es/shared/node-entry.js:15070:39)
    at CallExpression.bind (file:///home/atoferatofe/Workspace/udemy/sqldev/node_modules/rollup/dist/es/shared/node-entry.js:2829:23)
    at ExpressionStatement.bind (file:///home/atoferatofe/Workspace/udemy/sqldev/node_modules/rollup/dist/es/shared/node-entry.js:2829:23)
error: script "build" exited with code 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions