Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AC-326]: Upgrade next js to version 15 #119

Merged
merged 14 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18

- name: Enable Corepack
run: corepack enable

node-version: 20
cache: 'npm'
- name: Install dependencies
run: yarn install --no-immutable
run: npm install

- name: Run Prettier
run: yarn format
run: npm run format
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
</video>
</p>


## Table of Contents

- [Prerequisites](#prerequisites)
Expand All @@ -33,22 +32,24 @@
- **MedusaJS 2.0 backend**. If this hasn't been set up yet, please use the following:
- Our prepared repository: <a href="https://github.com/rigby-sh/solace-medusa-starter-api">Medusa 2.0 API <img width="20" alt="GitHub Logo" src="https://github.com/user-attachments/assets/b0657cbf-bbc1-40f1-99a7-8d60da97abac"></a>
- [Medusa 2.0 Documentation](https://docs.medusajs.com/v2)
> **Important**: If you're not using our prepared API repository, remember to:
> - Copy the folder from [Repo Link](https://github.com/rigby-sh/solace-medusa-starter-api/tree/main/src/api/store) and paste it to your API project
> - Copy the Middlewares file from [Repo Link](https://github.com/rigby-sh/solace-medusa-starter-api/tree/main/src/api) and paste it to your API project
>
> These files are required for the search engine and filter logic to work properly. Without them, the search and filtering functionality will not be available.
> **Important**: If you're not using our prepared API repository, remember to:
>
> - Copy the folder from [Repo Link](https://github.com/rigby-sh/solace-medusa-starter-api/tree/main/src/api/store) and paste it to your API project
> - Copy the Middlewares file from [Repo Link](https://github.com/rigby-sh/solace-medusa-starter-api/tree/main/src/api) and paste it to your API project
>
> These files are required for the search engine and filter logic to work properly. Without them, the search and filtering functionality will not be available.
- **A CMS management system like Strapi**. If this hasn't been set up yet, please use the following:
- Our prepared repository: <a href="https://github.com/rigby-sh/solace-medusa-starter-strapi">Strapi <img width="20" alt="GitHub Logo" src="https://github.com/user-attachments/assets/b0657cbf-bbc1-40f1-99a7-8d60da97abac"></a>
- [Strapi Documentation](https://docs.strapi.io/dev-docs/intro)
> **Important**: After setting up Strapi, configure the revalidation webhook:
> 1. Set `STRAPI_WEBHOOK_REVALIDATION_SECRET` in your Next.js `.env` (you can generate a secure value using `node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"`)
> 2. In Strapi admin panel: Settings → Webhooks → Create new webhook
> 3. Configure webhook:
> - URL: `{your-frontend-url}/api/strapi-revalidate?secret={YOUR-STRAPI_WEBHOOK_REVALIDATION_SECRET}`
> Example: `http://localhost:8000/api/strapi-revalidate?secret=30747ea915627411fa275b9e3e6cafd199f9c5b221696b644509c02510ebe979`
> - No additional headers needed
> - Enable Entry and Media events (Create, Update, Delete)
> **Important**: After setting up Strapi, configure the revalidation webhook:
>
> 1. Set `STRAPI_WEBHOOK_REVALIDATION_SECRET` in your Next.js `.env` (you can generate a secure value using `node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"`)
> 2. In Strapi admin panel: Settings → Webhooks → Create new webhook
> 3. Configure webhook:
> - URL: `{your-frontend-url}/api/strapi-revalidate?secret={YOUR-STRAPI_WEBHOOK_REVALIDATION_SECRET}`
> Example: `http://localhost:8000/api/strapi-revalidate?secret=30747ea915627411fa275b9e3e6cafd199f9c5b221696b644509c02510ebe979`
> - No additional headers needed
> - Enable Entry and Media events (Create, Update, Delete)

&nbsp;

Expand Down Expand Up @@ -126,7 +127,7 @@ git clone https://github.com/rigby-sh/solace-medusa-starter.git

```

yarn install
npm install

```

Expand Down Expand Up @@ -154,7 +155,7 @@ Start your application with autoReload enabled

```

yarn dev
npm run dev

```

Expand All @@ -164,7 +165,7 @@ Build the project to generate the production version preview

```

yarn build
npm run build

```

Expand All @@ -174,7 +175,7 @@ Run the preview version of the project

```

yarn start
npm run start

```

Expand Down Expand Up @@ -210,8 +211,7 @@ Deploying your application on Vercel is a quick and straightforward process that

&nbsp;

> [!IMPORTANT]
> **Image Usage Disclaimer**: The images used in this starter are for preview purposes only. They are licensed exclusively for use within this demo and cannot be used in any commercial applications or redistributed. If you intend to use this starter for your own store, please replace all images with assets that are appropriately licensed for your project.
> [!IMPORTANT] > **Image Usage Disclaimer**: The images used in this starter are for preview purposes only. They are licensed exclusively for use within this demo and cannot be used in any commercial applications or redistributed. If you intend to use this starter for your own store, please replace all images with assets that are appropriately licensed for your project.

&nbsp;

Expand Down
Loading
Loading