-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set up Clerk * Set up Clerk * Fix some errors apparently * Cleaned up backend * Cleaned up backend * Removed passlink * Renamed middleware * Added codespaces support * Fixed type issues --------- Co-authored-by: “xavilien” <“[email protected]”>
- Loading branch information
Showing
27 changed files
with
2,560 additions
and
1,260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
/// <reference types="next/navigation-types/compat/navigation" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
require("dotenv").config({ path: "../.env" }); | ||
const withTM = require("next-transpile-modules")(["passlink"]); | ||
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants"); | ||
|
||
module.exports = (phase, defaultConfig) => | ||
withTM({ | ||
module.exports = (phase) => { | ||
return { | ||
env: { | ||
backendUrl: | ||
process.env.BACKEND_URL || | ||
process.env.CODESPACES && `https://${process.env.CODESPACE_NAME}-3000.app.github.dev` || | ||
(phase === PHASE_DEVELOPMENT_SERVER | ||
? "http://localhost:3000" | ||
: "https://course-tool-backend-2kh6wuzobq-uc.a.run.app"), | ||
}, | ||
}); | ||
}; | ||
} |
Oops, something went wrong.