Skip to content

Commit

Permalink
.envの指定方法を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nasubi-dev committed Jun 15, 2024
1 parent fd93000 commit a7d2c3a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?
*.env
*.env.local
!.env.example
13 changes: 13 additions & 0 deletions src/pages/auth/callback.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Flex, Button, Text } from "@radix-ui/themes";

Check failure on line 1 in src/pages/auth/callback.tsx

View workflow job for this annotation

GitHub Actions / build

'Button' is declared but its value is never read.
import { type ReactElement } from "react";

export default function Page(): ReactElement {
const params = new URLSearchParams(window.location.search);
console.log(params);
return (
<Flex direction="column" gap="2">
<Text>こちらCallbackになります</Text>

</Flex>
);
}
2 changes: 1 addition & 1 deletion src/pages/auth/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function Page(): ReactElement {
<Flex direction="column" gap="2">
<Text>こちらログイン画面になります</Text>
<a
href={`https://api.esa.io/oauth/authorize?client_id=${import.meta.env.CLIENT_ID}&redirect_uri=${import.meta.env.REDIRECT_LOCAL_URI}&scope=read+write&response_type=code`}
href={`https://api.esa.io/oauth/authorize?client_id=${import.meta.env.VITE_CLIENT_ID}&redirect_uri=${import.meta.env.VITE_REDIRECT_LOCAL_URI}&scope=read+write&response_type=code`}
>
<Button>Login</Button>
</a>
Expand Down

0 comments on commit a7d2c3a

Please sign in to comment.