Skip to content
Merged
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
29 changes: 29 additions & 0 deletions examples/playground15/app/from-app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"use client";

import Link from "next/link";
import Image from "next/image";
import testImage from "../../public/test.jpg";

export default function Page() {
return (
<>
<p>hello app</p>
<Image src={testImage} alt="test" />
<p id="deploymentId">{process.env.NEXT_DEPLOYMENT_ID}</p>

<button
onClick={() => {
import("../../data").then((mod) => {
console.log("loaded data", mod);
});
}}
id="dynamic-import"
>
click me
</button>
<Link id="other-app" href="/other-app">
other app
</Link>
</>
);
}
24 changes: 24 additions & 0 deletions examples/playground15/app/other-app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use client";
import testImage from "../../public/test.jpg";
import Image from "next/image";

export default function Page() {
return (
<>
<h1>other app</h1>
<Image src={testImage} alt="test" />
<p id="deploymentId">{process.env.NEXT_DEPLOYMENT_ID}</p>

<button
onClick={() => {
import("../../data").then((mod) => {
console.log("loaded data", mod);
});
}}
id="dynamic-import"
>
click me
</button>
</>
);
}
6 changes: 6 additions & 0 deletions examples/playground15/data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import styles from "./data.module.css";

export const data = {
now: Date.now(),
styles,
};
3 changes: 3 additions & 0 deletions examples/playground15/data.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.wrap {
display: flex;
}
Binary file added examples/playground15/public/test.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.