Compare commits
3 Commits
feat/fix-h
...
8a18a5f547
Author | SHA1 | Date | |
---|---|---|---|
8a18a5f547 | |||
07d46607d1 | |||
358482748a |
@@ -1,5 +1,5 @@
|
||||
# Install dependencies only when needed
|
||||
FROM node:16-alpine AS deps
|
||||
FROM node:22-alpine AS deps
|
||||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
|
||||
RUN apk add --no-cache libc6-compat
|
||||
RUN yarn global add pnpm
|
||||
@@ -11,7 +11,7 @@ RUN pnpm i
|
||||
|
||||
|
||||
# Rebuild the source code only when needed
|
||||
FROM node:16-alpine AS builder
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
@@ -27,7 +27,7 @@ RUN yarn build
|
||||
# RUN npm run build
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
FROM node:16-alpine AS runner
|
||||
FROM node:22-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV production
|
||||
|
20
README.md
20
README.md
@@ -1,26 +1,16 @@
|
||||
# Next.js + Tailwind CSS Example
|
||||
|
||||
This example shows how to use [Tailwind CSS](https://tailwindcss.com/)
|
||||
[(v3.0)](https://tailwindcss.com/blog/tailwindcss-v3) with Next.js. It follows
|
||||
the steps outlined in the official
|
||||
[Tailwind docs](https://tailwindcss.com/docs/guides/nextjs).
|
||||
This example shows how to use [Tailwind CSS](https://tailwindcss.com/) [(v3.0)](https://tailwindcss.com/blog/tailwindcss-v3) with Next.js. It follows the steps outlined in the official [Tailwind docs](https://tailwindcss.com/docs/guides/nextjs).
|
||||
|
||||
## Deploy your own
|
||||
|
||||
Deploy the example using
|
||||
[Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example)
|
||||
or preview live with
|
||||
[StackBlitz](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-tailwindcss)
|
||||
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example) or preview live with [StackBlitz](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-tailwindcss)
|
||||
|
||||
[](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss&project-name=with-tailwindcss&repository-name=with-tailwindcss)
|
||||
|
||||
## How to use
|
||||
|
||||
Execute
|
||||
[`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app)
|
||||
with [npm](https://docs.npmjs.com/cli/init),
|
||||
[Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io)
|
||||
to bootstrap the example:
|
||||
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:
|
||||
|
||||
```bash
|
||||
npx create-next-app --example with-tailwindcss with-tailwindcss-app
|
||||
@@ -34,6 +24,4 @@ yarn create next-app --example with-tailwindcss with-tailwindcss-app
|
||||
pnpm create next-app --example with-tailwindcss with-tailwindcss-app
|
||||
```
|
||||
|
||||
Deploy it to the cloud with
|
||||
[Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example)
|
||||
([Documentation](https://nextjs.org/docs/deployment)).
|
||||
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
|
||||
|
@@ -22,12 +22,12 @@
|
||||
"@graphql-codegen/typescript-operations": "^2.5.3",
|
||||
"@graphql-codegen/typescript-react-apollo": "^3.3.3",
|
||||
"@graphql-codegen/typescript-react-query": "^4.0.1",
|
||||
"@types/node": "17.0.35",
|
||||
"@types/node": "22.14.0",
|
||||
"@types/react": "18.0.9",
|
||||
"@types/react-dom": "18.0.5",
|
||||
"autoprefixer": "^10.4.7",
|
||||
"postcss": "^8.4.14",
|
||||
"tailwindcss": "^3.1.2",
|
||||
"typescript": "4.7.2"
|
||||
"typescript": "5.8.3"
|
||||
}
|
||||
}
|
||||
|
914
pnpm-lock.yaml
generated
914
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
3
renovate.json
Normal file
3
renovate.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||
}
|
@@ -1,5 +1,5 @@
|
||||
# Install dependencies only when needed
|
||||
FROM node:16-alpine AS deps
|
||||
FROM node:22-alpine AS deps
|
||||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
|
||||
RUN apk add --no-cache libc6-compat
|
||||
RUN yarn global add pnpm
|
||||
@@ -11,7 +11,7 @@ RUN pnpm i
|
||||
|
||||
|
||||
# Rebuild the source code only when needed
|
||||
FROM node:16-alpine AS builder
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
@@ -27,7 +27,7 @@ RUN yarn build
|
||||
# RUN npm run build
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
FROM node:16-alpine AS runner
|
||||
FROM node:22-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV production
|
||||
|
Reference in New Issue
Block a user