nftstorage / nftstorage.link

🪐 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
https://nft.storage/nft-storage-classic
Other
46 stars 10 forks source link

fix: upgrade wrangler #128

Closed vasco-santos closed 2 years ago

vasco-santos commented 2 years ago

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.

TODO:

Closes #117

cloudflare-pages[bot] commented 2 years ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: aa3ab63
Status: ✅  Deploy successful!
Preview URL: https://cd040f57.nftstorage-link.pages.dev

View logs