Skip to content

Commit

Permalink
fix: missing maxAge default (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswragg committed Jan 11, 2024
1 parent 5499fdf commit d51e700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function ipxHttpStorage(_options: HTTPStorageOptions = {}): IPXStorage {
let _domains =
_options.domains || getEnv<string | string[]>("IPX_HTTP_DOMAINS") || [];
const defaultMaxAge =
_options.maxAge || getEnv<string | number>("IPX_HTTP_MAX_AGE");
_options.maxAge || getEnv<string | number>("IPX_HTTP_MAX_AGE") || 300;
const fetchOptions =
_options.fetchOptions || getEnv("IPX_HTTP_FETCH_OPTIONS") || {};

Expand Down

0 comments on commit d51e700

Please sign in to comment.