Skip to content

Commit 91ca910

Browse files
committed
fix: authenticatedFetch appending URLs
1 parent eb47411 commit 91ca910

5 files changed

Lines changed: 15 additions & 6 deletions

File tree

packages/dashboard/src/components/auth/login.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,21 @@ export const Login = ({}) => {
5050
<CardContent className="grid gap-4">
5151
<div className="grid gap-2">
5252
<Label htmlFor="username">Username</Label>
53-
<Input id="username" type="text" required />
53+
<Input
54+
id="username"
55+
type="text"
56+
autoComplete="username"
57+
required
58+
/>
5459
</div>
5560
<div className="grid gap-2">
5661
<Label htmlFor="password">Password</Label>
57-
<Input id="password" type="password" required />
62+
<Input
63+
id="password"
64+
type="password"
65+
autoComplete="password"
66+
required
67+
/>
5868
</div>
5969
</CardContent>
6070
<CardFooter>

packages/dashboard/src/lib/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const authenticatedFetch = async (
1717
throw new Error("Unauthorized");
1818
}
1919

20-
if (url.startsWith("/")) {
20+
if (!url.includes("/api") && url.startsWith("/")) {
2121
url = `${BASE_URL}/api` + url;
2222
}
2323

packages/deploy-script/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const domain = answers.CUSTOM_DOMAIN || endpoint;
6868
console.log(
6969
"\n\n" +
7070
boxen(
71-
`${chalk.green("Done!")} You can now access your TraceStack instance at \n${chalk.underline(chalk.bold(`https://${domain}`))}${adminPassword ? `\n\Username: admin\nPassword: ${adminPassword}` : ""}`,
71+
`${chalk.green("Done!")} You can now access your TraceStack instance at \n${chalk.underline(chalk.bold(`https://${domain}`))}${adminPassword ? `\n\nUsername: admin\nPassword: ${adminPassword}` : ""}`,
7272
{ padding: 1, borderStyle: "round" },
7373
),
7474
);

packages/e2e-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"private": true,
55
"scripts": {
6-
"test:e2e": "yarn node --experimental-vm-modules $(yarn bin jest) --coverage"
6+
"test:e2e": "yarn node --experimental-vm-modules $(yarn bin jest)"
77
},
88
"devDependencies": {
99
"@aws-sdk/client-dynamodb": "^3.658.1",

turbo.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"inputs": ["$TURBO_DEFAULT$", ".env*"]
1818
},
1919
"test:e2e": {
20-
"dependsOn": ["build"],
2120
"inputs": ["$TURBO_DEFAULT$", ".env*"]
2221
},
2322
"dev": {

0 commit comments

Comments
 (0)