Skip to content

zackshackleton/sprinkles-nextjs13

Repository files navigation

This is a minimal reproducible example of a vanilla-extract sprinkles issue with NextJs 13 App directory.

At its current state, running the application in production (npm run build + npm run start) does not apply the sprinkles styles. During local development builds (npm run dev) sprinkles work appropriately.

If you comment out any 1 condition in the ./src/app/styles/sprinkles.css.ts file, everything works in production.

I have set the layout and page to be client components to avoid any possible issues that could appear with Next's server components.

This is a Next.js project bootstrapped with create-next-app.

Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

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

Run the production build:

npm run build && npm run start

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

Dev Build:

Screenshot 2023-05-09 at 2 30 16 PM

Production Build:

Screenshot 2023-05-09 at 2 30 43 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published