Skip to content

Commit 8a511f6

Browse files
committed
Ensure privacy policy is included in build
1 parent 1bd22f1 commit 8a511f6

5 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/swift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [main]
66
paths:
7-
- MusicPractice*
7+
- MusicPractice*/**
88

99
jobs:
1010
tests:

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
branches: ["main"]
77
paths:
8-
- website
8+
- website/**
99

1010
# Allows you to run this workflow manually from the Actions tab
1111
workflow_dispatch:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,4 @@ fastlane/test_output
9090
iOSInjectionProject/
9191

9292
.DS_Store
93+
website/dist

website/privacy-policy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Music Practice</title>
6+
<title>Privacy Policy | Music Practice</title>
77
<link rel="icon" href="/assets/favicon.ico" type="image/x-icon" />
88
<link rel="stylesheet" href="/index.css" />
99
<!-- Inter Font -->

website/vite.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
import { defineConfig } from "vite";
22
import tailwindcss from "@tailwindcss/vite";
3+
import { dirname, resolve } from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
6+
const __dirname = dirname(fileURLToPath(import.meta.url));
37

48
export default defineConfig({
59
base: "/",
610
plugins: [tailwindcss()],
11+
build: {
12+
rollupOptions: {
13+
input: {
14+
main: resolve(__dirname, "index.html"),
15+
privacy: resolve(__dirname, "privacy-policy.html"),
16+
},
17+
},
18+
},
719
});

0 commit comments

Comments
 (0)