Skip to content

Commit

Permalink
fix: nextjs static images folder
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 6, 2020
1 parent 2673319 commit 391bafc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions integrations/nextjs-plugin/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ export default ({
staticFolder,
webPack,
...rest
}: CompileProps) => (phase: string, nextConfig: any) => {
}: CompileProps) => () => {
return {
/**
* we need some async function, to make sure the compilation process is completed
*/
async headers() {
const { defaultConfig } = nextConfig;
const userProps: CompileProps = {
bundleName,
configPath,
Expand All @@ -27,7 +26,7 @@ export default ({
presets: presets || defaultPresets,
distFolder: path.resolve(__dirname),
staticFolder:
staticFolder || path.join(process.cwd(), defaultConfig.distDir),
staticFolder || path.join(process.cwd(), 'public', 'static'),
...userProps,
};

Expand Down

0 comments on commit 391bafc

Please sign in to comment.