Skip to content

Commit

Permalink
fix: Undo Next 13 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfp13 committed Jan 11, 2024
1 parent dbc5dd4 commit d7f2979
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 109 deletions.
2 changes: 1 addition & 1 deletion packages/core/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const storeConfig = require('./faststore.config')
* */
const nextConfig = {
/* config options here */
output: 'standalone',
images: {
domains: [`${storeConfig.api.storeId}.vtexassets.com`],
deviceSizes: [360, 540, 768, 1280, 1440],
Expand Down Expand Up @@ -45,7 +46,6 @@ const nextConfig = {
},
redirects: storeConfig.redirects,
rewrites: storeConfig.rewrites,
output: 'standalone',
}

module.exports = nextConfig
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
"graphql": "^15.0.0",
"include-media": "^1.4.10",
"msw": "^0.43.1",
"next": "^13.5.6",
"next": "^12.3.1",
"next-seo": "^6.4.0",
"nextjs-progressbar": "^0.0.16",
"nextjs-progressbar": "^0.0.14",
"postcss": "^8.4.4",
"prettier": "^2.2.0",
"react": "^18.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { memo, useMemo } from 'react'

import type { ProductSummary_ProductFragment } from '@generated/graphql'
import { ImageProps } from 'next/image'
import { ImageProps } from 'next/future/image'
import NextLink from 'next/link'
import { Image } from 'src/components/ui/Image'
import { useFormattedPrice } from 'src/sdk/product/useFormattedPrice'
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/ui/Image/Image.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react'

import NextImage, { ImageProps as NextImageProps } from 'next/image'
import NextImage, { ImageProps as NextImageProps } from 'next/future/image'
import loader from './loader'

export type ImageProps = NextImageProps
Expand Down
Loading

0 comments on commit d7f2979

Please sign in to comment.