Skip to content

Commit 64e53bd

Browse files
committed
added rewrites, remove unused assets
1 parent 94ab100 commit 64e53bd

10 files changed

+18
-4
lines changed

components/slack-button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Image from "next/image";
2-
import slackGif from "../public/slackanimation.gif";
2+
import slackGif from "../public/assets/slackanimation.gif";
33

44
export default function SlackButton({
55
text,

components/video-modal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const VideoModal = ({
2020
className="w-11/12 overflow-hidden shadow-xl rounded-2xl"
2121
autoPlay
2222
controls
23-
src="https://assets.vercel.com/video/upload/v1677175120/random/slacker.mp4"
23+
src="/assets/demo.mp4"
2424
poster="data:image/gif,AAAA"
2525
/>
2626
</Modal>

next.config.js

+14
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,22 @@ const nextConfig = {
55
images: {
66
domains: ["cdn.loom.com"],
77
},
8+
async rewrites() {
9+
return [
10+
{
11+
source: "/assets/demo.mp4",
12+
destination:
13+
"https://assets.vercel.com/video/upload/v1677175120/random/slacker.mp4",
14+
},
15+
];
16+
},
817
async redirects() {
918
return [
19+
{
20+
source: "/github",
21+
destination: "https://github.com/vercel-labs/slacker",
22+
permanent: true,
23+
},
1024
{
1125
source: "/support",
1226
destination: "mailto:[email protected]",

pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function Home() {
4343
autoPlay
4444
loop
4545
muted
46-
src="/demo-preview.mp4"
46+
src="/assets/demo-preview.mp4"
4747
className="w-[350px] h-[350px] sm:w-[500px] sm:h-[500px] rounded-full object-cover"
4848
/>
4949
</div>

pages/success/[[...teamId]].tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function SuccessTeam(props: { teamId: string }) {
3737
autoPlay
3838
loop
3939
muted
40-
src="/demo-preview.mp4"
40+
src="/assets/demo-preview.mp4"
4141
className="w-[350px] h-[350px] sm:w-[500px] sm:h-[500px] rounded-full object-cover"
4242
/>
4343
</div>
File renamed without changes.
File renamed without changes.

public/banner.png

-33.2 KB
Binary file not shown.

public/screenshot.png

-786 KB
Binary file not shown.

public/thumbnail.png

-567 KB
Binary file not shown.

0 commit comments

Comments
 (0)