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

📦 feat: Adding tests of nuvidio widget #72

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion components/productItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function ProductSection({ id, name, rating, img_url, price }) {

<div className="product-img-box">
<Link href={`/product/${id}`}>
<img className="product-img" src={img_url} />
<img className="product-img" src="http://localhost:4001/image.jpg" />
</Link>
</div>

Expand Down
15 changes: 15 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,19 @@ module.exports = {
images: {
domains: ['m.media-amazon.com'],
},
async headers() {
return [
{
// matching all API routes
source: '/pages/:path*',
headers: [
{ key: 'Access-Control-Allow-Credentials', value: 'true' },
{ key: 'Access-Control-Allow-Origin', value: 'https://982d-18-228-40-209.ngrok.io' },
{ key: 'Access-Control-Allow-Methods', value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT' },
{ key: 'Access-Control-Allow-Headers', value: 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version' },
]
}
]
},
reactStrictMode: true,
};
Loading