github withastro/astro @astrojs/vercel@0.2.0

latest releases: astro@4.15.11, @astrojs/sitemap@3.2.0, astro@5.0.0-beta.3...
2 years ago

Minor Changes

  • #3216 114bf63e Thanks @JuanM04! - [BREAKING] Now with Build Output API (v3)! See the README to get started.

    • trailingSlash redirects works without a vercel.json file: just configure them inside your astro.config.mjs
    • Multiple deploy targets: edge, serverless and static!
    • When building to serverless, your code isn't transpiled to CJS anymore.

    Migrate from v0.1

    1. Change the import inside astro.config.mjs:
      - import vercel from '@astrojs/vercel';
      + import vercel from '@astrojs/vercel/serverless';
    2. Rename the ENABLE_FILE_SYSTEM_API environment variable to ENABLE_VC_BUILD, as Vercel changed it.
    3. The output folder changed from .output to .vercel/output — you may need to update your .gitignore.

Don't miss a new astro release

NewReleases is sending notifications on new releases.