serve static assets from local public/ instead of static.officer.dev, simplify gmail history 404/410 handling
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { DuckAvatar } from "./DuckAvatar";
|
||||
import { PixelGrid } from "@/components/PixelGrid";
|
||||
import { useGlobal } from 'hooks/useGlobal';
|
||||
const landscapebg = 'https://static.officer.dev/landscape1.webp';
|
||||
const landscapebg = '/landscape1.webp';
|
||||
|
||||
export function Background() {
|
||||
const [duckHidden] = useGlobal('DUCK_HIDDEN', false);
|
||||
|
||||
@@ -8,8 +8,8 @@ type DuckModelProps = {
|
||||
};
|
||||
|
||||
export function DuckModel({ onUpdate, onAssetsLoaded, currentSection }: DuckModelProps) {
|
||||
const character = useGLTF('https://static.officer.dev/duck3D/Character_output.glb');
|
||||
const animations = useGLTF('https://static.officer.dev/duck3D/Meshy_Merged_Animations.glb');
|
||||
const character = useGLTF('/duck3D/Character_output.glb');
|
||||
const animations = useGLTF('/duck3D/Meshy_Merged_Animations.glb');
|
||||
const meshRef = useRef<any>(null);
|
||||
const { actions } = useAnimations(animations.animations, meshRef);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PixelGrid } from "@/components/PixelGrid";
|
||||
const landscapebg = 'https://static.officer.dev/landscape1.webp';
|
||||
const landscapebg = '/landscape1.webp';
|
||||
|
||||
export function Background() {
|
||||
return (
|
||||
|
||||
@@ -32,7 +32,7 @@ export function Header({ dockItems }: HeaderProps) {
|
||||
)}
|
||||
<Link to="/">
|
||||
<img
|
||||
src="https://static.officer.dev/officer-logo.svg"
|
||||
src="/officer-logo.svg"
|
||||
alt="Officer"
|
||||
className="h-8 md:h-12 w-auto"
|
||||
style={{ transform: 'skew(-15deg, -2deg)' }}
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ export const BrowserRelay = () => {
|
||||
Download and unzip the extension, then load it in Chrome:
|
||||
</p>
|
||||
<a
|
||||
href="https://static.officer.dev/browser-relay-extension.zip"
|
||||
href="/browser-relay-extension.zip"
|
||||
download
|
||||
className="flex items-center justify-center gap-2 w-full h-11 rounded-md border border-duck-dark/15 dark:border-foreground/15 text-sm font-medium hover:bg-duck-dark/5 dark:hover:bg-foreground/5 transition-colors"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user