Skip to content

Commit

Permalink
Merge pull request #115 from palantir/ea/hack-around-nexxt
Browse files Browse the repository at this point in the history
Provide workaround for nextjs
  • Loading branch information
mfedderly authored Mar 6, 2024
2 parents 23746e4 + 7955b73 commit c69a21e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .envrc.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ export FOUNDRY_USER_TOKEN=
export FOUNDRY_STACK=myhost.mydomain.com
export MAVEN_CONJURE_BASE_PATH="https://somehost/basepath/internal-conjure"
export MAVEN_DIST_RELEASE="https://somehost/basepath/internal-dist-release"

export NEXT_FONT_GOOGLE_MOCKED_RESPONSES=$PWD/google-font-mocked-response.js
9 changes: 9 additions & 0 deletions google-font-mocked-response.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const path = require("path");

module.exports = {
"https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap":
`/**/@font-face {
font-family: "Inter";
}`,
};
5 changes: 5 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
"dependsOn": ["transpile", "typecheck"]
},

"@osdk/examples.next-static-export#build": {
"dependsOn": ["transpile", "typecheck"],
"inputs": ["../../google-font-mocked-response.js"]
},

"transpile": {
"dependsOn": ["mytsup#typecheck", "tsconfig#typecheck", "codegen"],
"inputs": ["src/**", "tsup.config.js", "tsconfig.json"],
Expand Down

0 comments on commit c69a21e

Please sign in to comment.