@wix/astro

0.2.0 • Public • Published

Wix Astro Integration

Features

Session Management

The Wix Astro integration provides session management for your Astro project.

Integrating into an exinsting Astro project

If you already have an Astro project and you want to add the Wix Astro integration to it, follow these steps:

  1. Install the Wix Astro integration package and the Wix CLI packages:
npm install @wix/astro @wix/cli @wix/cli-astro
  1. Add the Wix integration to your Astro project's astro.config.mjs file:
import wix from "@wix/astro-internal";

export default {
  // ...
  output: "server",
  integrations: [wix()],
  // ...
};
  1. Build your Astro project:
npm run build
  1. Create a wix.config.json at the root of your project:
{
  "siteId": "<your site id>",
  "projectId": "<your project id>"
}
  1. Deploy your Astro project to Wix:
npx wix astro deploy

Package Sidebar

Install

npm i @wix/astro

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

30.5 kB

Total Files

12

Last publish

Collaborators

  • yoav
  • wix-ci
  • tuvit.wix
  • shahata
  • wixnpm
  • wix-ambassador
  • netanelgilad
  • wix-ci-publisher
  • wix-bi-publisher
  • galil-team
  • lxgreen
  • ariki
  • liorgwix
  • usability-sessions
  • yurynix
  • oferb-wix
  • domasmak
  • mayaco
  • amitde007
  • tombenezra
  • itaytay
  • haimbrum-wix
  • youngshinobi
  • varzager
  • benblayer-wix
  • itai.benda
  • arielh
  • falconci