Skip to content

Commit f4f8856

Browse files
committed
fix browser launching
1 parent 64fb3cb commit f4f8856

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

MyApp.Client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite --open",
7+
"dev": "vite",
88
"dtos": "npx get-dtos ts",
99
"build": "tsc && vite build",
1010
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",

MyApp.Client/src/pages/bookings-custom.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React, { useState } from "react";
2-
import { AutoQueryGrid, AutoEditForm, TextLink, Icon, PreviewFormat, useFormatters } from "@servicestack/react"
1+
import { AutoQueryGrid, useFormatters } from "@servicestack/react"
32
import Page from "@/components/LayoutPage"
43
import { ValidateAuth } from "@/lib/auth"
54
import SrcPage from "@/components/SrcPage"
@@ -20,6 +19,7 @@ function Index() {
2019
<div className="mt-4 flex flex-col ">
2120
<AutoQueryGrid
2221
type="Booking"
22+
hide={['copyApiUrl','downloadCsv']}
2323
selectedColumns={['id', 'name', 'cost', 'bookingStartDate', 'bookingEndDate', 'roomNumber', 'createdBy', 'discount']}
2424
visibleFrom={{
2525
name: 'xl',

MyApp.Client/vite.config.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ const API_URL = isProd ? DEPLOY_API : (buildLocal ? '' : target)
3232

3333
// Only required if accessing vite directly, e.g. http://localhost:5173
3434
const proxy = {
35-
'^/api': {
36-
target,
37-
secure: false
38-
}
35+
'^/api': {
36+
target,
37+
secure: false
3938
}
39+
}
4040

4141
export default defineConfig({
4242
define: { apiBaseUrl: `"${API_URL}"` },
@@ -78,6 +78,7 @@ export default defineConfig({
7878
target: 'baseline-widely-available',
7979
},
8080
server: {
81-
proxy,
82-
}
81+
proxy,
82+
open: false,
83+
}
8384
})

MyApp/Properties/launchSettings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"commandName": "Project",
1414
"dotnetRunMessages": true,
1515
"launchBrowser": true,
16-
"launchUrl": "metadata",
1716
"applicationUrl": "https://localhost:5001",
1817
"environmentVariables": {
1918
"ASPNETCORE_ENVIRONMENT": "Development"
@@ -23,7 +22,7 @@
2322
"commandName": "Project",
2423
"dotnetRunMessages": true,
2524
"launchBrowser": true,
26-
"launchUrl": "metadata",
25+
"launchUrl": "/",
2726
"applicationUrl": "https://localhost:5001;http://localhost:5000",
2827
"environmentVariables": {
2928
"ASPNETCORE_ENVIRONMENT": "Development"
@@ -32,7 +31,6 @@
3231
"IIS Express": {
3332
"commandName": "IISExpress",
3433
"launchBrowser": true,
35-
"launchUrl": "metadata",
3634
"environmentVariables": {
3735
"ASPNETCORE_ENVIRONMENT": "Development"
3836
}

0 commit comments

Comments
 (0)