Skip to content

Commit

Permalink
Merge pull request #461 from netlify/pa/rename-edge-redirects-dir
Browse files Browse the repository at this point in the history
Update edge-redirects dir path
  • Loading branch information
paulo authored May 15, 2023
2 parents 1e435fe + 915e054 commit 670d7a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go/porcelain/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (
lfsVersionString = "version https://git-lfs.github.com/spec/v1"

edgeFunctionsInternalPath = ".netlify/internal/edge-functions/"
edgeRedirectsInternalPath = ".netlify/internal/edge-redirects/"
edgeRedirectsInternalPath = ".netlify/deploy-config/"
)

var installDirs = []string{"node_modules/", "bower_components/"}
Expand Down
4 changes: 2 additions & 2 deletions go/porcelain/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ func TestWalk_PublishedFilesAndEdgeRedirects(t *testing.T) {
require.Nil(t, err)
defer os.RemoveAll(edgeRedirectsDir)

err = ioutil.WriteFile(filepath.Join(edgeRedirectsDir, "manifest.json"), []byte{}, 0644)
err = ioutil.WriteFile(filepath.Join(edgeRedirectsDir, "redirects.json"), []byte{}, 0644)
require.Nil(t, err)

err = addInternalFilesToDeploy(edgeRedirectsDir, edgeRedirectsInternalPath, files, mockObserver{})
require.Nil(t, err)

assert.NotNil(t, files.Files["assets/styles.css"])
assert.NotNil(t, files.Files["index.html"])
assert.NotNil(t, files.Files[".netlify/internal/edge-redirects/manifest.json"])
assert.NotNil(t, files.Files[".netlify/deploy-config/redirects.json"])
}

func setupPublishedAssets(t *testing.T) *deployFiles {
Expand Down

0 comments on commit 670d7a5

Please sign in to comment.