Skip to content

Commit

Permalink
feat(web-shell): Added @next/font
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Nov 14, 2022
1 parent abf9e18 commit ef22c2d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/web/landing/ClientApp/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { API_URL } = process.env;
**/
const nextConfig = {
basePath: "/home",
distDir: "../../../../dist/web/landing/ClientApp",
distDir: "../../../../dist/apps/web/landing/ClientApp",
nx: {
svgr: true,
},
Expand Down
7 changes: 6 additions & 1 deletion apps/web/shell/ClientApp/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { Inter } from "@next/font/google";
import Link from "next/link";
import React from "react";
import "./globals.css";

const inter = Inter({
variable: "--font-inter",
});

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<html lang="en" className={inter.variable}>
<head />
<body className="bg-gray-1100">
<nav>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/web/shell/ClientApp/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { DOCS_URL, API_URL } = process.env;
**/
const nextConfig = {
basePath: "",
distDir: "../../../../dist/web/shell/ClientApp",
distDir: "../../../../dist/apps/web/shell/ClientApp",
nx: {
svgr: true,
},
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@docusaurus/preset-classic": "^2.2.0",
"@js-temporal/polyfill": "^0.4.3",
"@mdx-js/react": "^1.6.21",
"@next/font": "^13.0.3",
"clsx": "^1.1.1",
"core-js": "^3.6.5",
"dotenv": "^16.0.3",
Expand Down

0 comments on commit ef22c2d

Please sign in to comment.