mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? moving the production test case broke it Closes WEB-1660 Co-authored-by: Jiachi Liu <[email protected]>
24 lines
477 B
JavaScript
24 lines
477 B
JavaScript
import value from 'http://localhost:12345/value2.js'
|
|
|
|
const url = new URL(
|
|
'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=ssr',
|
|
import.meta.url
|
|
)
|
|
|
|
export function getServerSideProps() {
|
|
return {
|
|
props: {
|
|
value,
|
|
url: url.pathname,
|
|
},
|
|
}
|
|
}
|
|
|
|
export default function Index({ value: serverValue, url: serverUrl }) {
|
|
return (
|
|
<div>
|
|
Hello {serverValue}+{value}+{serverUrl}+{url.pathname}
|
|
</div>
|
|
)
|
|
}
|