rsnext/test/integration/url-imports/pages/ssg.js
Tobias Koppers ec9a87afd8
fix test case (#56034)
### What?

moving the production test case broke it


Closes WEB-1660

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
2023-09-26 18:41:46 +02:00

23 lines
479 B
JavaScript

import value from 'http://localhost:12345/value1.js'
const url = new URL(
'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=ssg',
import.meta.url
)
export async function getStaticProps() {
return {
props: {
value,
url: url.pathname,
},
}
}
export default function Index({ value: staticValue, url: staticUrl }) {
return (
<div>
Hello {staticValue}+{value}+{staticUrl}+{url.pathname}
</div>
)
}