Skip to content

Basic Next.js app used as a Front.com plugin, setting partitioned cookies via Server Actions

Notifications You must be signed in to change notification settings

dugjason/nextjs-front-plugin-with-cookie

Repository files navigation

This is a Next.js project demonstrating how to set and unset Cookies using Server Actions.

This example can be applied when managing cookies in a Front.com sidebar plugin.

Getting Started

Install the dependencies, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Next, open Front (app.frontapp.com or log in via your SSO provider), and head to Settings > Developers > Create App.

Create a new app with Sidebar Plugin feature, and add http://localhost:3000 as the plugin URL.

Now you can click back into your Front inbox, and select the plugin in your sidebar.

Demo

A demo version of this application is published at https://nextjs-front-plugin-with-cookie.vercel.app/.

You are welcome to test this by creating a Front Sidebar Plugin app, and adding this as the Side panel URL.

Learn More

To learn more about Next.js, take a look at the following resources:

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out the Next.js deployment documentation for more details.

About

Basic Next.js app used as a Front.com plugin, setting partitioned cookies via Server Actions

Topics

Resources

Stars

Watchers

Forks