@keegancodes/foundations-next
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-rc.0 • Public • Published

@keegancodes/foundations-next

These are my shared Next.js helpers I use in most apps

Utils

import { getFullyQualifiedDeploymentUrl } from "@keegancodes/foundations-next";

Used to get URLs for sites with deployment protection:

 const { url, headers } = await getFullyQualifiedDeploymentUrl(
      `/api/cheers?slug=${slug}`,
    );
    const data = await fetch(url, {
      cache: 'no-store',
      headers,
    });
    ```

Readme

Keywords

none

Package Sidebar

Install

npm i @keegancodes/foundations-next

Weekly Downloads

31

Version

2.0.0-rc.0

License

MIT

Unpacked Size

12.1 kB

Total Files

12

Last publish

Collaborators

  • keegandonley