Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
goodbye: lagon
Browse files Browse the repository at this point in the history
EdamAme-x committed Jan 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b98e850 commit aef0b88
Showing 3 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -6,7 +6,4 @@ RUN curl -fsSL https://gist.githubusercontent.com/LukeChannings/09d53f5c36439104

# Install Bun
ENV BUN_INSTALL=/usr/local
RUN curl -fsSL https://bun.sh/install | bash

# Install Lagon
RUN yarn global add @lagon/cli esbuild
RUN curl -fsSL https://bun.sh/install | bash
3 changes: 0 additions & 3 deletions deno_dist/helper/adapter/index.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ export type Runtime =
| 'workerd'
| 'fastly'
| 'edge-light'
| 'lagon'
| 'other'

export const env = <T extends Record<string, unknown>, C extends Context = Context<{}>>(
@@ -24,7 +23,6 @@ export const env = <T extends Record<string, unknown>, C extends Context = Conte
bun: () => globalEnv,
node: () => globalEnv,
'edge-light': () => globalEnv,
lagon: () => globalEnv,
deno: () => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
@@ -48,7 +46,6 @@ export const getRuntimeKey = () => {
if (typeof global?.WebSocketPair === 'function') return 'workerd'
if (typeof global?.EdgeRuntime === 'string') return 'edge-light'
if (global?.fastly !== undefined) return 'fastly'
if (global?.__lagon__ !== undefined) return 'lagon'
if (global?.process?.release?.name === 'node') return 'node'

return 'other'
3 changes: 0 additions & 3 deletions src/helper/adapter/index.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ export type Runtime =
| 'workerd'
| 'fastly'
| 'edge-light'
| 'lagon'
| 'other'

export const env = <T extends Record<string, unknown>, C extends Context = Context<{}>>(
@@ -24,7 +23,6 @@ export const env = <T extends Record<string, unknown>, C extends Context = Conte
bun: () => globalEnv,
node: () => globalEnv,
'edge-light': () => globalEnv,
lagon: () => globalEnv,
deno: () => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
@@ -48,7 +46,6 @@ export const getRuntimeKey = () => {
if (typeof global?.WebSocketPair === 'function') return 'workerd'
if (typeof global?.EdgeRuntime === 'string') return 'edge-light'
if (global?.fastly !== undefined) return 'fastly'
if (global?.__lagon__ !== undefined) return 'lagon'
if (global?.process?.release?.name === 'node') return 'node'

return 'other'

0 comments on commit aef0b88

Please sign in to comment.