-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds the ability to add Source transforms on assets, which modify the source code of an asset before parsing. This adds postcss via node.js as first source transform. Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
- Loading branch information
1 parent
ba3a171
commit 8faea8e
Showing
98 changed files
with
1,705 additions
and
839 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,9 +1,11 @@ | ||
const loadConfig = require("next/dist/server/config").default; | ||
const { PHASE_DEVELOPMENT_SERVER } = require("next/dist/shared/lib/constants"); | ||
import loadConfig from "next/dist/server/config"; | ||
import { PHASE_DEVELOPMENT_SERVER } from "next/dist/shared/lib/constants"; | ||
|
||
module.exports = (async () => { | ||
const loadNextConfig = async () => { | ||
const nextConfig = await loadConfig(PHASE_DEVELOPMENT_SERVER, process.cwd()); | ||
nextConfig.rewrites = await nextConfig.rewrites?.(); | ||
nextConfig.redirects = await nextConfig.redirects?.(); | ||
return nextConfig; | ||
})(); | ||
}; | ||
|
||
export { loadNextConfig as default }; |
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
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
Oops, something went wrong.
8faea8e
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.
Successfully deployed to the following URLs:
turbo-site – ./docs
www.turborepo.com
turbo.build
turbo.vercel.app
www.turbopack.org
www.turborepo.org
www.turbo.build
turborepo.org
turbo.vercel.sh
turbopack.org
turbo-site.vercel.sh
turbo-site-git-main.vercel.sh