diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-05-01 19:57:48 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-01 20:20:29 -0300 |
commit | c8c9c465b241062570cc3955c01fb5d59d20d888 (patch) | |
tree | f81207bf154c81d28eee6b445d4d3cb1d7c2ae58 /src/write/build-modes/static-build.js | |
parent | e9eb08953d9ff25c23d67168d7b9d47599425f42 (diff) |
web-routes, upd8, write: integrate web routes with url-spec
[Note: due to a fantastical Rebase Fail Moment, this commit accidentally reintroduced some bad imports in upd8.js that are meant to be factored into #import-heck. So this commit is rewritten to not do that, but it means the commits in pull requests #442 and #479 don't line up with main history like they should. Oops.]
Diffstat (limited to 'src/write/build-modes/static-build.js')
-rw-r--r-- | src/write/build-modes/static-build.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js index a70da3e7..68cf0949 100644 --- a/src/write/build-modes/static-build.js +++ b/src/write/build-modes/static-build.js @@ -438,17 +438,7 @@ function writeWebRouteSymlinks({ }) { const promises = webRoutes.map(async route => { - // TODO: Make web routes specify `to` via url spec - /* - const pathname = urls.from('shared.root').toDevice(urlKey); - const file = path.join(outputPath, pathname); - */ - - const parts = - route.to - .replace(/^\//, '') - .split('/'); - + const parts = route.to.split('/'); const parentDirectoryParts = parts.slice(0, -1); const symlinkNamePart = parts.at(-1); |