Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add @remix-run/netlify-edge package + update Netlify template #3104

Closed
wants to merge 136 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
03b037f
feat(EXPERIMENTAL): add support for Netlify Edge Functions (#2866)
ascorbic Apr 19, 2022
299f041
chore: patches for pre
chaance Apr 19, 2022
a98927a
chore: add netlify-edge to version script
mcansh Apr 19, 2022
0558147
chore: revert override of --template flag
chaance Apr 19, 2022
3beff72
fix: bundle netlify-edge (#2931)
ascorbic Apr 20, 2022
803c643
fix: updated conditions for deno and netlify edge (#2942)
jacob-ebey Apr 20, 2022
d092036
Revert "chore: patches for pre"
nickytonline May 5, 2022
e7fb4cb
Update packages/remix-netlify-edge/package.json
nickytonline May 6, 2022
74bb317
Update packages/remix-netlify-edge/package.json
nickytonline May 6, 2022
590c309
Removed accidentally added package-lock.json from Netlify Edge template
nickytonline May 6, 2022
3289337
Added a link to the Netlify functions overview page to the readme
nickytonline May 6, 2022
9d0bf37
Updated deno settings for VS Code
nickytonline May 6, 2022
664de49
Added a link to the Netlify Edge functions overview page to the readme
nickytonline May 6, 2022
581ff1c
updated Netlify Edge function template files
nickytonline May 6, 2022
3ba4e09
Update templates/netlify/remix.init/remix.config-edge.js
nickytonline May 16, 2022
31d193c
Update templates/netlify/remix.init/index.js
nickytonline May 16, 2022
efcb3c4
Update packages/remix-netlify-edge/package.json
nickytonline May 16, 2022
8467d2d
created and now export the GetLoadContextFunction type
nickytonline May 16, 2022
99a8184
Update packages/remix-netlify-edge/remix-deno/crypto.ts
nickytonline May 16, 2022
3a3e6b1
chore: removed temporary remix-deno directory now that there is @remi…
nickytonline May 17, 2022
4ea0dad
missing types from server are now exported
nickytonline May 17, 2022
8ad0f6f
added missing new line
nickytonline May 17, 2022
ffc921d
denofying things
nickytonline May 19, 2022
07ee7f6
Update templates/netlify/remix.init/remix.env.d.ts
nickytonline May 19, 2022
b92e1ad
Update packages/remix-dev/compiler/plugins/serverBareModulesPlugin.ts
nickytonline May 19, 2022
d97eac3
remove tsconfig from netlify-edge template as Remix generates it
nickytonline May 19, 2022
11d0180
now imports are replaced for Edge when generating a Netlify Edge project
nickytonline May 19, 2022
52a1369
remix.init replaces @remix-run/netlify dep with @remix-run/netlify-ed…
nickytonline May 19, 2022
2fb574f
improved generating Netlify Edge project's package.json
nickytonline May 20, 2022
be0fe0b
small refactor
nickytonline Jun 17, 2022
efef1d4
Merge remote-tracking branch 'upstream/main' into nickytonline/chore-…
nickytonline Oct 27, 2022
25c0d7e
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Nov 8, 2022
b529737
chore: added missing @remix-run/deno@1.4.3 to fix yarn --frozen-lockfile
nickytonline Nov 8, 2022
d87302e
Update packages/remix-netlify-edge/server.ts
nickytonline Nov 9, 2022
91a524c
chore: no longer need the special case because the rollup config has …
nickytonline Nov 9, 2022
f81397f
chore: update to use published Netlify context type
ascorbic Nov 9, 2022
df0b43a
chore: reverted some spelling as it's not related to this PR
nickytonline Nov 9, 2022
994edc8
Merge branch 'nickytonline/chore-update-netlify-remix-template' into …
ascorbic Nov 9, 2022
dcba4e9
Merge pull request #1 from ascorbic/nickytonline/chore-update-netlify…
nickytonline Nov 9, 2022
099df65
chore: removed dev section from netlify.toml as Netlify's framework-i…
nickytonline Nov 9, 2022
0503e2e
chore: ran lint:fix
nickytonline Nov 9, 2022
c7b9802
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Nov 9, 2022
926255d
Update templates/netlify/remix.init/remix.config-edge.js
nickytonline Nov 10, 2022
fb6f12c
chore: move publish folder from public to build
nickytonline Nov 10, 2022
c3c1bff
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Nov 10, 2022
e4c0d6a
Revert "chore: move publish folder from public to build"
nickytonline Nov 10, 2022
3318f9f
chore: fixed file copy for Netlify Edge files
nickytonline Nov 11, 2022
1e3dcf6
chore: cleaned up generation of package.json for a Netlify edge project
nickytonline Nov 11, 2022
806fc74
chore: removed unused file
nickytonline Nov 11, 2022
2df3cc6
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Nov 11, 2022
86f1afd
chore: added process to globalThis as part of Node.js bridging
nickytonline Nov 11, 2022
0b542fe
chore: file isn't necessary with the assumption the Deno extension is…
nickytonline Nov 11, 2022
989d025
chore: moved setting of globalThis.process into @remix-run/netlify-edge
nickytonline Nov 11, 2022
10b2695
chore: switched from a regex/replace to good old replaceAll
nickytonline Nov 11, 2022
0d78477
chore: formatted .netlify gitignore entry like the CLI does
nickytonline Nov 11, 2022
803f9bf
chore: added netlify-edge for check for isDenoRuntime
nickytonline Nov 11, 2022
6195e51
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Nov 21, 2022
b37e849
chore: removed server.js and server.ts from VS Code settings for Netl…
nickytonline Nov 23, 2022
a96c7b7
chore: added generation of manifest for Netlify Edge to Remix compiler
nickytonline Nov 23, 2022
f69d22b
fix: fixed arguments for creating the Remix handler for Netlify Edge
nickytonline Nov 23, 2022
c9afffb
chore: bumped netlify-edge package.json to 1.7.6
nickytonline Nov 25, 2022
96e84b7
chore: cleanup based on PR feedback
nickytonline Nov 25, 2022
896a352
chore: cleanup based on PR feedback
nickytonline Nov 25, 2022
e2b59d6
chore: added some comments to global types for Netlify Edge template
nickytonline Nov 25, 2022
6037bb6
chore: cleanup based on PR feedback
nickytonline Nov 25, 2022
138c10c
chore: cleanup based on PR feedback
nickytonline Nov 25, 2022
aca10a1
test: added deployment setup for e2e tests for Netlify edge
nickytonline Nov 28, 2022
bb9e29f
chore: reverted replaceAlll to a regex to support Node 14
nickytonline Nov 28, 2022
48d76d5
chore: removed global types file from Netlify edge template as they'r…
nickytonline Nov 28, 2022
0a353f9
Update scripts/deployment-test/netlify.mjs
nickytonline Nov 28, 2022
0f64dbb
chore: update Netlify Edge deployment CI check
nickytonline Nov 29, 2022
8cf637e
chore: added @remix-run/deno to package.json for Netlify Edge template
nickytonline Nov 29, 2022
f81dbe0
chore: removed packages/remix-netlify-edge due to Deno style imports
nickytonline Nov 30, 2022
3196d98
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Nov 30, 2022
60fbe48
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Nov 30, 2022
6f1a643
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Nov 30, 2022
835a555
chore: used same convention as the rest of the project for .includes
nickytonline Nov 30, 2022
d87126e
chore: removed commented out configuration in root tsconfig
nickytonline Nov 30, 2022
b17d74a
fix: add type check for packages/remix-netlify-edge
nickytonline Nov 30, 2022
b708933
chore: fixed some imports for deno code
nickytonline Dec 1, 2022
31e16f2
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 1, 2022
caae8bd
Update scripts/build.mjs
nickytonline Dec 1, 2022
4ddb5eb
Update .vscode/deno_resolve_npm_imports.json
nickytonline Dec 1, 2022
7a39ad4
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 1, 2022
aed7635
Merge branch 'nickytonline/chore-update-netlify-remix-template' into …
nickytonline Dec 1, 2022
eaf50ff
Merge branch 'dev' into nickytonline/chore-update-netlify-remix-template
nickytonline Dec 1, 2022
02eb35b
wip
nickytonline Dec 2, 2022
147a2dc
Update packages/remix-deno/server.ts
nickytonline Dec 2, 2022
d44be97
Merge remote-tracking branch 'upstream/dev' into add-type-check
nickytonline Dec 2, 2022
7126e42
chore: removed old export for createRemixRequestHandler
nickytonline Dec 2, 2022
bf7c380
chore: bumped @remix-run/deno to 1.8.0
nickytonline Dec 2, 2022
fe69ed8
Merge pull request #2 from nickytonline/add-type-check
nickytonline Dec 2, 2022
b9a3029
trigger build
nickytonline Dec 2, 2022
ea2af16
chore: updated yarn.lock
nickytonline Dec 2, 2022
7fbc19e
chore: removed globals.d.ts from template file for vscode settings
nickytonline Dec 2, 2022
abf0ce9
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 2, 2022
8f73241
Update packages/remix-netlify-edge/package.json
nickytonline Dec 2, 2022
cf1f398
Update packages/remix-netlify-edge/package.json
nickytonline Dec 2, 2022
c8c9fb4
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 2, 2022
5db90ef
Update packages/remix-netlify-edge/package.json
nickytonline Dec 2, 2022
d96b4b3
Update packages/remix-netlify-edge/package.json
nickytonline Dec 2, 2022
49ea16e
chore: moved where export for createRemixRequestHandler happens
nickytonline Dec 2, 2022
d9c4634
chore: removed comment that is no longer valid
nickytonline Dec 2, 2022
a8dfa62
chore: fixed alphabetical ordering of imports
nickytonline Dec 2, 2022
9ed5799
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 2, 2022
1166b49
chore: updated yarn.lock
nickytonline Dec 2, 2022
525f528
chore: fixed double dependency issue
nickytonline Dec 2, 2022
d5332f8
Revert "chore: fixed double dependency issue"
nickytonline Dec 2, 2022
a85cc3f
Merge branch 'dev' into nickytonline/chore-update-netlify-remix-template
nickytonline Dec 3, 2022
74d4c23
chore: removed @1.7.6 package references
nickytonline Dec 3, 2022
b384a5a
chore: minor formatting not required for this PR
nickytonline Dec 3, 2022
21f143d
Merge branch 'dev' into nickytonline/chore-update-netlify-remix-template
nickytonline Dec 6, 2022
d113f8a
chore: added @netlify/edge-functions to deps for Edge template
nickytonline Dec 6, 2022
1636c01
trigger build
nickytonline Dec 6, 2022
00cb7af
Merge branch 'dev' into nickytonline/chore-update-netlify-remix-template
nickytonline Dec 6, 2022
3ac5b9f
Merge branch 'dev' into nickytonline/chore-update-netlify-remix-template
nickytonline Dec 7, 2022
675ed9d
chore: removed netlify and netlify-edge server build targets and cust…
nickytonline Dec 8, 2022
f1e431f
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 8, 2022
c896016
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 8, 2022
7cdfca7
chore: updated yarn.lock
nickytonline Dec 8, 2022
36ae8d8
Update packages/remix-netlify-edge/server.ts
nickytonline Dec 9, 2022
90a9235
chore: using in-source config instead of manifest now
nickytonline Dec 9, 2022
c419ae8
chore: enabled edge functions caching
nickytonline Dec 9, 2022
8f1a6de
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 19, 2022
d0e737e
chore: bumped @remix-run/deno version in nextlify edge package
nickytonline Dec 19, 2022
bc672cc
chore: bumped @remix-run/netlify-edge to 1.9.0
nickytonline Dec 19, 2022
a8c1db1
chore: udpated yarn.lock
nickytonline Dec 19, 2022
212aecf
Put back Netlify Functions server build target
nickytonline Dec 19, 2022
adb9639
chore: added "skipLibCheck": true, like the other templates to avoid …
nickytonline Dec 20, 2022
0346753
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 20, 2022
733559f
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Dec 22, 2022
29763da
chore: put back netlify-edge server build target
nickytonline Dec 22, 2022
cef75f1
Merge remote-tracking branch 'upstream/dev' into nickytonline/chore-u…
nickytonline Jan 16, 2023
b82df5c
chore: bumped remix-netlify-edge package version
nickytonline Jan 16, 2023
e136beb
chore: insource config is an object now
nickytonline Jan 16, 2023
f96d44f
chore: updated yarn lock file
nickytonline Jan 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions templates/netlify/remix.init/create-edge-manifest.ts

This file was deleted.

4 changes: 0 additions & 4 deletions templates/netlify/remix.init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const filesToCopy = [
["server.js"],
["remix.config.js"],
["vscode.json", join(".vscode", "settings.json")],
["create-edge-manifest.ts"],
];

const filesToModify = ["app/entry.server.tsx", "app/root.tsx"];
Expand Down Expand Up @@ -59,9 +58,6 @@ async function updatePackageJsonForEdge(directory) {
scripts: {
...scripts,
dev: scripts["start"],
build: "run-s build:*",
nickytonline marked this conversation as resolved.
Show resolved Hide resolved
"build:remix": "remix build",
"build:edge-manifest": "ts-node create-edge-manifest.ts",
},
...restOfPackageJson,
dependencies: {
Expand Down
4 changes: 4 additions & 0 deletions templates/netlify/remix.init/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ export default createRequestHandler({
// process.env.NODE_ENV is provided by Remix at compile time
mode: process.env.NODE_ENV,
});

export const config = () => ({
path: "/*",
});