-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make use of deep paths more clear in app router package (#1581)
* Only use esm * Use mjs imports instead of cjs * Use mjs version of config * Use `ApolloClient`/`InMemoryCache` * Add changesets * Use `isolatedModules`. Thanks @theodesp ! * Make the temp use of deep imports more clear
- Loading branch information
1 parent
77c5d4f
commit 507cc4e
Showing
8 changed files
with
20 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* We are currently importing these utils from their deep paths because importing | ||
* from the main export will also include the FaustProvider component, which throws an error because | ||
* it does not have the "use client" directive set. | ||
* | ||
* @todo Find a workaround for importing these utils without invoking FaustProvider. | ||
* @see https://github.com/vercel/next.js/issues/12557#issuecomment-1427088366 | ||
*/ | ||
export { getConfig } from '@faustwp/core/dist/mjs/config/index.js'; | ||
export { getGraphqlEndpoint } from '@faustwp/core/dist/mjs/lib/getGraphqlEndpoint.js'; | ||
export { getWpUrl } from '@faustwp/core/dist/mjs/lib/getWpUrl.js'; | ||
export { getWpSecret } from '@faustwp/core/dist/mjs/lib/getWpSecret.js'; | ||
export { isValidEmail } from '@faustwp/core/dist/mjs/utils/assert.js'; |
3 changes: 1 addition & 2 deletions
3
packages/experimental-app-router/src/server-actions/loginAction.ts
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
2 changes: 1 addition & 1 deletion
2
packages/experimental-app-router/src/server-actions/logoutAction.ts
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
2 changes: 1 addition & 1 deletion
2
packages/experimental-app-router/src/server-actions/utils/setRefreshToken.ts
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
2 changes: 1 addition & 1 deletion
2
packages/experimental-app-router/src/server/auth/fetchTokens.ts
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
3 changes: 1 addition & 2 deletions
3
packages/experimental-app-router/src/server/routeHandler/tokenHandler.ts
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
507cc4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check out the recent updates to your Atlas environment:
Learn more about building on Atlas in our documentation.