Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Added utility to generate "_redirects" file #677

Merged
merged 1 commit into from
Sep 4, 2022
Merged

Added utility to generate "_redirects" file #677

merged 1 commit into from
Sep 4, 2022

Conversation

dotansimha
Copy link
Member

@dotansimha dotansimha commented Sep 4, 2022

This new tool acts as a Webpack plugin to generate _redirects files (for CloudFlare Pages), based on NextJS redirects param.

Usage:

# next.config.js
import { applyUnderscoreRedirects } from 'guild-docs/underscore-redirects';

module.exports = {
  webpack(config, meta) {
    applyUnderscoreRedirects(config, meta);
    
    return config;
  },
}

@changeset-bot
Copy link

changeset-bot bot commented Sep 4, 2022

🦋 Changeset detected

Latest commit: 83f66ed

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
guild-docs Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 4, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
the-guild-docs ✅ Ready (Inspect) Visit Preview Sep 4, 2022 at 9:01AM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2022

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2022

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
guild-docs 4.1.0-alpha-20220904090056-0383800 npm ↗︎ unpkg ↗︎

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant