Skip to content

Commit

Permalink
Fix: Edge Runtimeにしきれていないところを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
takara2314 committed Aug 6, 2023
1 parent 80229a4 commit 10d8f1f
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 71 deletions.
21 changes: 0 additions & 21 deletions .github/createEnviron.ts

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/main.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test build

on:
push:
branches:
- main

jobs:
test-build:
name: Test build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm install

- name: Build app
run: npm run build
2 changes: 2 additions & 0 deletions app/status/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import fetchStatus from '../fetchStatus';
import Overall from './overall';
import Item from './item';

export const runtime = 'edge';

const Page = () => {
const status = use(fetchStatus());

Expand Down
2 changes: 2 additions & 0 deletions app/wiki/[title]/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { redirect } from 'next/navigation';
import Encoding from 'encoding-japanese';

export const runtime = 'edge';

export const GET = async (request: Request, { params }: {
params: { title: string }
}) => {
Expand Down
2 changes: 2 additions & 0 deletions app/wiki/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { redirect } from 'next/navigation';

export const runtime = 'edge';

export const GET = async (request: Request) => {
redirect('https://wiki.mikage.click/');
};
2 changes: 2 additions & 0 deletions pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import NextAuth from 'next-auth';
import Discord from 'next-auth/providers/discord';

export const runtime = 'edge';

export default NextAuth({
providers: [
Discord({
Expand Down

0 comments on commit 10d8f1f

Please sign in to comment.