Skip to content

Commit

Permalink
Upgrade test app to NextJS 15 (#2585)
Browse files Browse the repository at this point in the history
Upgrade test app to NextJS 15, including refactoring to the `app/` directory structure.
  • Loading branch information
NSeydoux authored Jan 16, 2025
1 parent 2ff415f commit 304db99
Show file tree
Hide file tree
Showing 6 changed files with 893 additions and 290 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

import type { AppProps } from "next/app";

function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
export default function TestAppLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>
<main>{children}</main>
</body>
</html>
);
}

export default MyApp;
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

"use client";

// Disabling the following prevents from having to install before linting from
// the root.
// eslint-disable-next-line import/no-unresolved
Expand All @@ -30,7 +32,7 @@ import {
handleIncomingRedirect,
getDefaultSession,
} from "@inrupt/solid-client-authn-browser";
import SolidClient from "../solidClient";
import SolidClient from "../components/solidClient";

const REDIRECT_URL = window.location.href;
const APP_NAME = "Solid client browser-based tests app";
Expand Down
Loading

0 comments on commit 304db99

Please sign in to comment.