Astro: @astrojs/[email protected] Release

Release date:
May 12, 2022
Previous version:
@astrojs/[email protected] (released April 26, 2022)
Magnitude:
0 Diff Delta
Contributors:
0 total committers
Data confidence:
Commits:

Top Contributors in @astrojs/[email protected]

Could not determine top contributors for this release.

Directory Browser for @astrojs/[email protected]

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

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`:
    ```diff
    - 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`.