🪐 NFT.Storage Gateway, the IPFS gateway for NFT.Storage is not "another gateway", but a caching layer for NFTs that sits on top of existing IPFS public gateways. ***Notice: Uploads have been decommissioned.**** Learn more and find a new hot storage provider for uploading new assets: nft.storage/nft-storage-classic
This PR upgrades wrangle to its v2 in api, edge-gateway and website packages.
Now Wrangler provides super easy way of deploying to CF Pages and we are using it in the website, allowing us to get rid of the tools package
Some details of the changes for api and edge-gateway:
- 😶 Ignored: "type":
Most common features now work out of the box with wrangler, including modules, jsx,
typescript, etc. If you need anything more, use a custom build.
- Deprecation: "build.upload.format":
The format is inferred automatically from the code.
- Deprecation: "build.upload.main":
Delete the `build.upload.main` and `build.upload.dir` fields.
Then add the top level `main` field to your configuration file:
main = "dist/worker.mjs"
```
- Deprecation: "build.upload.dir":
Use the top level "main" field or a command-line argument to specify the entry-point for the
Worker.
Unexpected fields found in top-level field: "watch_dir"
"env.staging" environment configuration
Deprecation: "zone_id":
This is unnecessary since we can deduce this from routes directly.
This PR upgrades wrangle to its v2 in
api
,edge-gateway
andwebsite
packages.Now Wrangler provides super easy way of deploying to CF Pages and we are using it in the website, allowing us to get rid of the tools package
Some details of the changes for
api
andedge-gateway
:Worker.
TODO:
Closes #117