Unverified Commit f895b727 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Fix url-imports test on 15-5 (#84966)

Was fixed on canary in #84922

Very annoying test setup
parent 81f530db
// @ts-ignore -- the latest @types/react don't have this anymore
import { unstable_Activity as Activity } from 'react' import { unstable_Activity as Activity } from 'react'
export default function Page() { export default function Page() {
......
...@@ -2,7 +2,7 @@ module.exports = { ...@@ -2,7 +2,7 @@ module.exports = {
experimental: { experimental: {
urlImports: [ urlImports: [
'http://localhost:12345/', 'http://localhost:12345/',
'https://github.com/vercel/next.js/raw/canary/', 'https://github.com/vercel/next.js/raw/next-15-5/',
], ],
}, },
} }
.main { .main {
background: url('https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png'); background: url('https://github.com/vercel/next.js/raw/next-15-5/test/integration/url/public/vercel.png');
background-size: contain; background-size: contain;
width: 300px; width: 300px;
height: 300px; height: 300px;
......
import Image from 'next/image' import Image from 'next/image'
import logo from 'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=image' import logo from 'https://github.com/vercel/next.js/raw/next-15-5/test/integration/url/public/vercel.png?_=image'
export default () => ( export default () => (
<div> <div>
......
import value from 'http://localhost:12345/value1.js' import value from 'http://localhost:12345/value1.js'
const url = new URL( const url = new URL(
'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=ssg', 'https://github.com/vercel/next.js/raw/next-15-5/test/integration/url/public/vercel.png?_=ssg',
import.meta.url import.meta.url
) )
......
import value from 'http://localhost:12345/value2.js' import value from 'http://localhost:12345/value2.js'
const url = new URL( const url = new URL(
'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=ssr', 'https://github.com/vercel/next.js/raw/next-15-5/test/integration/url/public/vercel.png?_=ssr',
import.meta.url import.meta.url
) )
......
import value from 'http://localhost:12345/value3.js' import value from 'http://localhost:12345/value3.js'
const url = new URL( const url = new URL(
'https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png?_=static', 'https://github.com/vercel/next.js/raw/next-15-5/test/integration/url/public/vercel.png?_=static',
import.meta.url import.meta.url
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment