# @netlify/hydrogen-platform

> Hydrogen support for Netlify Edge Functions

Latest version **1.1.4** (published 2023-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @netlify/hydrogen-platform
pnpm add @netlify/hydrogen-platform
yarn add @netlify/hydrogen-platform
bun add @netlify/hydrogen-platform
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2023-01-16 |
| First published | 2022-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | Matt Kane |
| Maintainers | ed_stephinson, danez, sarahetter, kevsamoei, orinokai, ericap, seanroberts, dustincrogers, skn0tt, mikewen, dengeist, biilmann, marcus.netlify, jgantunes, eduardoboucas, netlify-bot, nasiba, zachleat, ascorbic |

## Links

- npm: https://www.npmjs.com/package/@netlify/hydrogen-platform
- Repository: https://github.com/netlify/hydrogen-platform
- Homepage: https://github.com/netlify/hydrogen-platform#readme
- Issues: https://github.com/netlify/hydrogen-platform/issues
- npm.io page: https://npm.io/package/@netlify/hydrogen-platform

## Dependencies (1)

- [@netlify/vite-plugin-netlify-edge](https://npm.io/package/@netlify/vite-plugin-netlify-edge.md) ^1.1.2

## Recent versions

- 1.1.4 (latest) — 2023-01-16
- 1.1.3 — 2022-12-02
- 1.1.2 — 2022-09-30
- 1.1.1 — 2022-08-09
- 1.1.0 — 2022-08-08
- 1.0.0 — 2022-06-22
- 0.0.2 — 2022-04-19
- 0.0.1 — 2022-04-19

## README

# ⚠️ This package is deprecated. See [the new template](https://github.com/netlify/hydrogen-template) to deploy Hydrogen to Netlify

This package is a Hydrogen platform that allows you to deploy your site to Netlify Edge Functions.

## Installation

```shell
npm i -D @netlify/hydrogen-platform
```

Then add the plugin to your Vite config:

```js
// vite.config.js

import { defineConfig } from 'vite'
import hydrogen from '@shopify/hydrogen/plugin'
import netlifyPlugin from '@netlify/hydrogen-platform/plugin'

export default defineConfig({
  plugins: [hydrogen(), netlifyPlugin()],
  //   ...
})
```

Then when you run `shopify hydrogen build` it will generate the correct files to deploy to Netlify Edge.

Netlify detects Hydrogen sites, so you should have the correct settings already, but if you need to set them manually you can use the `netlify.toml` or Netlify UI to do so:

```toml
# netlify.toml
[build]
command = "npm run build"
publish = "dist/client"
```

---
_Source: https://npm.io/package/@netlify/hydrogen-platform · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
