netlify / netlify/cli

Deploy does not follow symlinks

Open
#1,809 15 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: command: deploy type: feature
Dominant language
TypeScript
Stars
1.9k
Forks
474
Avg merge
23h 30m
Merged PRs (30d)
53

Description

Describe the bug

netlify deploy does not follow symlinks out of the publish directory and misses files.

To Reproduce

cd out/
ln -s ../index.html out/
cd ..
netlify deploy

Configuration

[build]
base = "."
publish = "out/"
command = "wasm-pack build --target no-modules"

Expected behavior

index.html should be included in the deploy. It isn't.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the documented netlify deploy command with the out/ publish directory and its index.html symlink. Trace the CLI's publish-directory file collection, then verify that a deploy containing the symlink includes index.html as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.