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'
export default function Page() {
......
......@@ -2,7 +2,7 @@ module.exports = {
experimental: {
urlImports: [
'http://localhost:12345/',
'https://github.com/vercel/next.js/raw/canary/',
'https://github.com/vercel/next.js/raw/next-15-5/',
],
},
}
.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;
width: 300px;
height: 300px;
......
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 () => (
<div>
......
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',
'https://github.com/vercel/next.js/raw/next-15-5/test/integration/url/public/vercel.png?_=ssg',
import.meta.url
)
......
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',
'https://github.com/vercel/next.js/raw/next-15-5/test/integration/url/public/vercel.png?_=ssr',
import.meta.url
)
......
import value from 'http://localhost:12345/value3.js'
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
)
......
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