Skip to content

Commit

Permalink
publish rest-contries
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Nov 11, 2024
1 parent a611d39 commit f8f7422
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion examples/rest-countries/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "frontendmentor-rest-countries",
"homepage": "https://grucloud.github.io/bau/frontendmentor/rest-countries/",
"private": true,
"version": "0.86.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"deploy": "gh-pages -d ../../dist"
},
"devDependencies": {
"gh-pages": "6.1.1",
"typescript": "^5.0.2",
"vite": "^5.2.11"
},
Expand Down
5 changes: 4 additions & 1 deletion examples/rest-countries/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ import { layoutDefault } from "./layoutDefault";
import { createRoutes } from "./routes";
import "./style.css";

const context = createContext();
const config = { base: "/bau/frontendmentor/rest-countries" };

const context = createContext({ config });

BauRouter({
routes: createRoutes({ context }),
onLocationChange: onLocationChange({
context,
config,
LayoutDefault: layoutDefault(context),
}),
//notFoundRoute: notFoundRouteDefault(context),
Expand Down
2 changes: 2 additions & 0 deletions examples/rest-countries/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { defineConfig } from "vite";

export default defineConfig(({ command, mode, ssrBuild }) => {
return {
base: "/bau/frontendmentor/rest-countries/",
build: { outDir: "../../dist/frontendmentor/rest-countries" },
server: {
open: true,
},
Expand Down

0 comments on commit f8f7422

Please sign in to comment.