summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/core/render/result.ts9
-rw-r--r--packages/astro/src/core/render/script.ts8
2 files changed, 0 insertions, 17 deletions
diff --git a/packages/astro/src/core/render/result.ts b/packages/astro/src/core/render/result.ts
index 35155306c..27ac2ca1c 100644
--- a/packages/astro/src/core/render/result.ts
+++ b/packages/astro/src/core/render/result.ts
@@ -23,15 +23,6 @@ import { warn, type LogOptions } from '../logger/core.js';
const clientAddressSymbol = Symbol.for('astro.clientAddress');
const responseSentSymbol = Symbol.for('astro.responseSent');
-function onlyAvailableInSSR(name: 'Astro.redirect') {
- return function _onlyAvailableInSSR() {
- switch (name) {
- case 'Astro.redirect':
- throw new AstroError(AstroErrorData.StaticRedirectNotAvailable);
- }
- };
-}
-
export interface CreateResultArgs {
adapterName: string | undefined;
ssr: boolean;
diff --git a/packages/astro/src/core/render/script.ts b/packages/astro/src/core/render/script.ts
deleted file mode 100644
index a91391963..000000000
--- a/packages/astro/src/core/render/script.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export const SCRIPT_EXTENSIONS = new Set(['.js', '.ts']);
-
-const scriptRe = new RegExp(
- `\\.(${Array.from(SCRIPT_EXTENSIONS)
- .map((s) => s.slice(1))
- .join('|')})($|\\?)`
-);
-export const isScriptRequest = (request: string): boolean => scriptRe.test(request);