Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

prevent copy of .public to .public #146

Merged
merged 2 commits into from
Jan 19, 2021
Merged

Conversation

lindsaylevine
Copy link
Contributor

Fixes #137

@lindsaylevine lindsaylevine requested a review from ehmicky January 17, 2021 12:31
@lindsaylevine lindsaylevine added the type: bug code to address defects in shipped code label Jan 17, 2021
@@ -8,8 +8,10 @@ const copyPublicFiles = (publishPath) => {
if (!existsSync(PUBLIC_PATH)) return;

// Perform copy operation
logTitle("🌍️ Copying", PUBLIC_PATH, "folder to", publishPath);
copySync(PUBLIC_PATH, publishPath);
if (publishPath !== PUBLIC_PATH) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should path.normalize() be used on both sides?

@lindsaylevine lindsaylevine merged commit 5ddb83d into main Jan 19, 2021
@lindsaylevine lindsaylevine deleted the ll/public-publish-dir-issue branch January 19, 2021 16:27
lindsaylevine added a commit that referenced this pull request Jan 26, 2021
- Put back next/image support ([#158](#158))
- Fix: strip file extension when checking if route is dynamic ([#155](#155))
- Fix: prevent copy of .public to .public ([#146](#146))
- Fix: add check if pages-manifest exists before reading ([#147](#147))
- Fix: throw error if .next/static cannot be found ([#148](#148))
- Fix: remove unnecessary * from headers rule ([#152](#152))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure when the publish directory is public.
2 participants