Skip to content

Commit

Permalink
assorted fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
revmischa committed Jul 2, 2024
1 parent 7691b8e commit 6e8a4c7
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ yarn-error.log*

# TSC build output
/dist

*.tsbuildinfo
126 changes: 112 additions & 14 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion stacks/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function Database({ stack, app }: StackContext) {

stack.addOutputs({
DBName: { value: defaultDatabaseName, description: 'Name of the default database' },
GetSecretsCommand: {
GetDatabaseSecretsCommand: {
value: `aws secretsmanager get-secret-value --region ${stack.region} --secret-id ${db.secret?.secretArn ?? 'unknown'} --query SecretString --output text`,
description: 'Command to get DB connection info and credentials',
},
Expand Down
2 changes: 1 addition & 1 deletion stacks/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function Web({ stack, app }: StackContext) {
},
memorySize: 1024,
environment: {
NEXTAUTH_SECRET: secrets.secretValueFromJson('NEXTAUTH_SECRET').toString(),
NEXTAUTH_SECRET: secrets.secretValueFromJson('AUTH_SECRET').toString(),
NEXTAUTH_URL: isLocal ? 'http://localhost:6001' : WEB_URL ?? 'https://set-me-in-.env',

NEXT_PUBLIC_REGION: stack.region,
Expand Down
8 changes: 0 additions & 8 deletions web/.eslintrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion web/lib/component/home/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import React from 'react';

import { Splash } from './Splash/Splash';
import { Authentication } from '@/app/ui/LoginButton';

const Home: React.FC = () => {
return (
<div className="text-blue-300 flex justify-center flex-1 overflow-hidden py-0 px-8 w-full">
<Splash />

<div>
<LoginButton callbackUrl="/profile" />
<Authentication />
</div>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"vite-tsconfig-paths": "^4.3.2"
},
"devDependencies": {
"@testing-library/react": "^16.0.0",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
1 change: 1 addition & 0 deletions web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"types": ["vitest/globals"],
"plugins": [
{
"name": "next"
Expand Down

0 comments on commit 6e8a4c7

Please sign in to comment.