feat(poc): revert changes

This commit is contained in:
Björn Meyer 2023-07-14 13:36:05 +02:00
parent 1bfbd903cc
commit eacf390afa
6 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ import Prose from 'components/prose';
import { getPage } from 'lib/shopware'; import { getPage } from 'lib/shopware';
import { notFound } from 'next/navigation'; import { notFound } from 'next/navigation';
export const runtime = 'nodejs'; export const runtime = 'edge';
export const revalidate = 43200; // 12 hours in seconds export const revalidate = 43200; // 12 hours in seconds

View File

@ -3,7 +3,7 @@ import { revalidateTag } from 'next/cache';
import { headers } from 'next/headers'; import { headers } from 'next/headers';
import { NextRequest, NextResponse } from 'next/server'; import { NextRequest, NextResponse } from 'next/server';
export const runtime = 'nodejs'; export const runtime = 'edge';
// We always need to respond with a 200 status code to Shopify, // We always need to respond with a 200 status code to Shopify,
// otherwise it will continue to retry the request. // otherwise it will continue to retry the request.

View File

@ -3,7 +3,7 @@ import { ThreeItemGrid } from 'components/grid/three-items';
import Footer from 'components/layout/footer'; import Footer from 'components/layout/footer';
import { Suspense } from 'react'; import { Suspense } from 'react';
export const runtime = 'nodejs'; export const runtime = 'edge';
export const metadata = { export const metadata = {
description: 'High-performance ecommerce store built with Next.js, Vercel, and Shopware.', description: 'High-performance ecommerce store built with Next.js, Vercel, and Shopware.',

View File

@ -13,7 +13,7 @@ import { HIDDEN_PRODUCT_TAG } from 'lib/constants';
import { getProduct, getProductRecommendations } from 'lib/shopware'; import { getProduct, getProductRecommendations } from 'lib/shopware';
import { Image } from 'lib/shopware/types'; import { Image } from 'lib/shopware/types';
export const runtime = 'nodejs'; export const runtime = 'edge';
export async function generateMetadata({ export async function generateMetadata({
params params

View File

@ -10,7 +10,7 @@ import Pagination from 'components/collection/pagination';
import { getCollection, getCollectionProducts } from 'lib/shopware'; import { getCollection, getCollectionProducts } from 'lib/shopware';
import { defaultSort, sorting } from 'lib/constants'; import { defaultSort, sorting } from 'lib/constants';
export const runtime = 'nodejs'; export const runtime = 'edge';
export async function generateMetadata({ export async function generateMetadata({
params params

View File

@ -4,7 +4,7 @@ import FilterList from 'components/layout/search/filter';
import { defaultSort, sorting } from 'lib/constants'; import { defaultSort, sorting } from 'lib/constants';
import { getSearchCollectionProducts } from 'lib/shopware'; import { getSearchCollectionProducts } from 'lib/shopware';
export const runtime = 'nodejs'; export const runtime = 'edge';
export const metadata = { export const metadata = {
title: 'Search', title: 'Search',